---
title: Image uploading and formatting – S-Docs for HubSpot
description: Learn how to upload and edit images in the S-Docs template editor.
---

[S-Docs for HubSpot Knowledge Base ](https://www.sdocs.com/knowledge-base/sdocs-hubspot)

# [Image uploading and formatting – S-Docs for HubSpot](https://www.sdocs.com/knowledge-base/sdocs-hubspot/template-editor/image-uploading-and-formatting)

 Written by [Admin](https://www.sdocs.com/knowledge-base/sdocs-hubspot/author/admin) | Jun 16, 2025 7:39:51 PM

 

You can upload images to an S-Docs template from three different sources: upload from computer, URLs, and dynamic data sources from any object in HubSpot. You can also edit them as you see fit. This new image support is available in three places:

1. A standalone image in a block.
2. An image inside a table block.
3. An image in a related data table. 

Let’s go through the ways you can add an image to your document templates.

## Adding images to your document template in a standalone image block

### Upload an image from your computer 

1. Insert an image by dragging and dropping an image field or by clicking the **plus sign icon** and selecting **Image** from the menu. 
2. Select the source that you want to upload the image from in the *Source* dropdown menu. To upload an image, we will select **Upload Image**. 
3. Then, click **Click to upload** in the *Image *field. 
4. Once the image is uploaded, you may notice that it needs some adjusting to fit your document. Under the *Display* section in the right sidebar, click the *Fit* field. Here, you can control the aspect ratio, stretch, shrink, fit, crop, or keep the image original.
5. In the *Display *section, you can also adjust the image’s padding, margin, and fill and border colors.  

### Add images dynamically from any object in HubSpot

You can also add images to a document template dynamically froom any object in HubSpot. This is great for situations where you would want a barcode, QR code, or customer logo to populate in your document. Let’s review how to do so: 

1. Select **Data Source Fields** from the *Source* dropdown menu.
2. Then choose the object that you want to pull the image from in the *Field* dropdown menu. In the demo above, we chose the customer's company logo. If you want to use a QR code, you would choose the field.
3. To see what the image will look like once the document is generated, click **Preview** button in the top right corner.

### Add images from a live URL

1. Add an image to your document template. 
2. Select **URL** from the *Source* dropdown menu. 
3. Paste the URL into the *URL* field. 
4. Format the image as you see fit. 

**Note: **If the URL breaks or changes, the image will no longer load when you generate the document. As a best practice, we recommend using URLs that you are in control of, or checking to ensure all images are pulled in as they’re supposed to be upon document generation. 

## Include images in a standard table block 

You can use the above upload methods to add images to a standard table block in your document template. To do this: 

1. Drag and drop the table element into the template builder.
2. Fill out your table properties. then, click the **dropdown icon** in the table cell that you want your image in. Click **Insert Image.**
3. Choose your *Source*. We will upload an image for this example.
4. Format your images as needed. Using images in tables is a great option for invoices and order forms.

## Include images in related data tables

You can also add images to your document templates in related data. This is perfect for invoices and order forms where you would want to have product pictures, for example. You can also add profile photos of key contacts, and much more. 

1. Drag and drop the **Deal Line Items** related data list into your document template.
2. **Click to add fields.**
3. Add your fields. We added *Name, Quantity, *and *Image URL.*
4. Click on **Image URL**. Then, in the *Format* dropdown, select **Image**.
5. Format the image in the Field pop up menu.
6. Click the **Preview button** to see how the information and images will populate.

 

[View full post](https://www.sdocs.com/knowledge-base/sdocs-hubspot/template-editor/image-uploading-and-formatting)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Admin"
  },
  "dateModified" : "2026-05-20T00:38:03.577Z",
  "datePublished" : "2025-06-16T19:39:51Z",
  "headline" : "Image Uploading and Formatting in the Template Editor",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://www.sdocs.com/knowledge-base/sdocs-hubspot/template-editor/image-uploading-and-formatting",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "S-Docs for HubSpot Knowledge Base"
  }
}
```