Productsup

Rule box category Edit image

Use the rule box category Edit image to optimize images in your data by applying rule boxes in Productsup.

Introduction

The category Edit image contains all rule boxes that can help you create and edit an image in Productsup. Using the rule boxes in this category, you can add a logo, cart, rating, or other image to your existing images, create a collage with relevant product images, and trim, resize, or rotate images.

UUID-997e4020-0fdf-e6c9-b575-bce9e384e36a

In many Edit image rule boxes, you can find the following terms:

  • Padding is a space between the content and the border of the defined area.
  • Border is a frame around the defined area.
  • Margin is a space outside the defined area.

UUID-01c75af6-ef8e-7852-3ed1-2d4fa205a12b

Add Cart Image

The Add Cart Image rule box lets you include an icon with a call-to-action (CTA) to prompting the customer to add a product to the cart.

Take the steps from Add a rule box to add the Add Cart Image rule box. UUID-3505b793-92a8-7bb8-9b57-e67a750ba833

Select Coordinates to open the coordinates field and define the area where you want to locate your cart icon.

In Text, enter a static text that should appear on the cart icon.

In Background color, define the color of the area of the cart icon.

In Text color, pick the cart icon text color.

In Margin (0-100), define the margin outside of your cart icon.

In Image Format, select the type of the result image: jpg or png.

Select Save.

For example, you have the following image in your image attribute and want all images have the icon Add to cart! in the top corner. You can achieve this with the following setup of the Add Cart Image rule box:

UUID-deb59cf7-2a9b-352b-0fca-ed9b1739a5e1

image (before)image (after)
UUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-3382783c-b5c3-872a-4507-100553482e60

Add Image

The Add Image rule box lets you add a static or dynamic image on top of your original image.

Take the steps from Add a rule box to add the Add Image rule box. UUID-78674427-9d62-b03b-2536-b55a52c9071a

Select Coordinates to open the coordinates field and define the area where you want to locate your image.

To select an image that you want to put on top of the original image, use one of the options:

  • To add an image from the outside of your imported data, enter the URL of the desired image in Source.
  • To add an image from another attribute, select the attribute containing your desired images in Or Image Column

In Transparency (0-100), select the transparency of the added image on a scale from 0 to 100, where 0 is non-transparent and 100 is fully transparent.

In Zoom, choose among different zoom methods: a combination of Top, Middle, or Bottom with Center, Left, or Right to decide which parts of your image to crop away.

In Padding (0-100), define the amount of padding within the selected area, where 0 is no padding.

In Align Within Selection, select the alignment type of your image: a combination of Top, Middle, or Bottom with Center, Left, or Right.

In Image Format, select the type of the result image: jpg or png.

Select Save.

For example, you have the following image in your image attribute and want all images have a social media icon on it. You can achieve this with the following setup of the Add Image rule box:

UUID-0ee8a401-7517-1c10-5ad7-32a8509b99bd

image (before)image (after)
UUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-468c0265-e182-c69b-e654-f03fab1a4cf6

Add Image From Column

The Add Image From Column rule box lets you add a static or dynamic image on top of your original image.

Take the steps from Add a rule box to add the Add Image From Column rule box. UUID-68f203ea-733e-2bfc-149b-902abf976098

Select an attribute that contains the images in Column.

Select Save.

For example, you have the following image in your image attribute and want to add its URL to the description attribute. You can achieve this with the Add Image From Column rule box by selecting the image attribute in Column:

image (no changes)description (before)description (after)
UUID-660b6256-6c8b-b2a4-56c4-1181d018d716Black hoodie with a pocketBlack hoodie with a pocket,https://productsup/black_hoodie.png

The platform automatically adds a comma without a space before the following image URL.

Add Image Layer

The Add Image Layer rule box lets you add a colored layer on top of an image as a canvas for a further text.

Take the steps from Add a rule box to add the Add Image Layer rule box. UUID-d5e2f033-c041-e484-d8c3-1d39069b7e31

Select Coordinates to open the coordinates field and define the area where you want to locate your layer.

Select the Color field to pick the desired color of the layer or enter a hex color code or select an attribute that contains the a hex color codes in Color Column.

In Transparency (0-100), select the transparency of the added layer on a scale from 0 to 100, where 0 is non-transparent and 100 is fully transparent.

In Border width (px), define the width of the border separating the layer from the image.

In Border color, define the color of the border by picking the color in the color scheme or by entering a hex code.

In Border opacity, select the opacity of your border on a scale, where 0 is full opacity and 100 is no opacity.

In Border position, select the position of the border in relation to the layer:

  • Center adds the border on top of the layer's edges.
  • Outside adds the border outside the layer's edges.
  • Inside adds the border inside the layer's edges.

In Margin (px), define the margin outside the layer.

Select Save.

For example, you have the following image in your image attribute and want to add layer on top of it. You can achieve this with the following setup of the Add Image Layer rule box:

UUID-541f76f9-2814-edfe-5b91-3fd13930db44

image (no changes)image (after)
UUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-58ce1968-42f3-ac12-e983-3fcc7974cb36

Add Logo To Image

The Add Logo To Image rule box lets you add a static or dynamic logo on an image.

Take the steps from Add a rule box to add the Add Logo To Image rule box. UUID-7879e426-926d-0a16-a28c-2238143c5585

Enter the URL where you store your logo in Logo URL, or select an attribute that contains your logos in Logo Column.

In Position from Top and Position from Left, define the logo position on the image. The rule box divides the image into five clusters from top to bottom and from left to right.

In Logo Width, select the percentage of the logo width.

In Rotate (clockwise), rotate the logo clockwise on 90, 180, or 270 degrees.

In Resize (width) and Resize (height), select the size of the resulting image.

In Grid, select show to see the grid that may help you to position your logo. Don't forget to hide it before saving the final image.

Select Save.

For example, you have the following image in your image attribute and want to add a logo in the corner. You can achieve this with the following setup of the Add Logo To Image rule box:

UUID-f17be78d-cb52-e136-f971-7a1dab551fcb

image (before)image (after)
UUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-38aed072-c822-cf03-57a4-c1895c9a2af1

Add Rating Image

The Add Rating Image rule box lets you add a star rating icon to an image.

Take the steps from Add a rule box to add the Add Rating Image rule box. UUID-9012bfa1-3463-9131-ea71-019a0f43ef33

Select Coordinates to open the coordinates field and define the area where you want to locate your rating icon.

Enter the number of the rating stars from 0 to 5 in Rating (0-5), or select an attribute that contains ratings in Rating Column.

In Fill folor, pick the filling color of the rating stars in the color scheme or by entering the hex code.

In Border color, define the color of the ratings stars' border by picking the color in the color scheme or by entering the hex code.

In Margin (0-100), define the margin outside the rating stars.

In Image Format, select the type of the result image: jpg or png.

Select Save.

For example, you have the following image in your image attribute and want to add the rating stars on the image. You can achieve this with the following setup of the Add Rating Image rule box:

UUID-f924478b-8b1a-310f-671d-4d7382a3d62b

image (before)image (after)
UUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-61f44802-a9cb-3ff9-1060-95ab21ae5f97

Add Text To Image

The Add Text To Image rule box lets you add text to a desired place on an image.

Take the steps from Add a rule box to add the Add Text To Image rule box. UUID-701c5d4b-6380-bf43-9ec6-ba3aa80689c6

Select the attribute that contains the text you want to place on the image in Input from.

Optionally, in Text before, enter a text you want to add before the text from the attribute.

Optionally, in Text after, enter a text you want to add after the text from the attribute.

Optionally, in Max Text Length, enter the maximum number of characters that your added text can contain.

In Line Number and Start Block, define the text position on the image. The rule box divides the image into five clusters from top to bottom and from left to right.

In Text Width, select the percentage of the text width.

In Font Color, select the text color by picking the color in the color scheme or by entering the hex code.

Select the desired text font in Font.

In Resize (width) and Resize (height), select the size of the resulting image.

In Grid, select show to see the grid that may help you to position your text. Don't forget to hide it before saving the final image.

Select Save.

For example, you have the following image in your image attribute and want to add text on the image from brand. You can achieve this with the Add Text To Image rule box:

brand (no change)image (before)image (after)
MyBrandUUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-f9d927e5-393d-6af1-781b-7dd27d6f2522

Add Text to Image Coordinates

The Add Text to Image Coordinates rule box lets you add a text to a desired place in an image.

Take the steps from Add a rule box to add the Add Text to Image Coordinates rule box. UUID-ce154c47-a2b1-1d6e-a9c0-2d9feae550b8

Select Coordinates to open the coordinates field and define where you want to locate your text.

Select the attribute that contains the text you want to place on the image in Input from.

Optionally, in Text Before, enter a text that you want to add before the text from the attribute.

Optionally, in Text After, enter a text that you want to add after the text from the attribute.

Optionally, in Max Text Length, enter the maximum number of characters that your added text can contain.

In Font Color, select the text color by picking the color in the color scheme or entering the hex code.

Select the desired text font in Font.

In Align, add the type of the text alignment: Left, Center, or Right.

In Padding (0-100), define the amount of padding within the selected area, where 0 is no padding.

In Max Font Size (px), define a maximum font size when you add multiple texts to ensure all texts have the same size.

In Image Format, select the type of the result image: jpg or png.

Select Save.

For example, you have the following image in your image attribute and want to add the information about the available sizes on the image from size. You can achieve this with the following setup of the Add Text to Image Coordinates rule box:

UUID-934af6db-8dd8-b20a-befa-35518dea9157

size (no change)image (before)image (after)
LUUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-0b7bf97d-191d-d9c9-a819-da7362a95446

Add URL Fragment

A URL fragment is an internal page reference that appears at the end of a URL and begins with a hash character (#) followed by an identifier. It refers to a section within a web page.

The Add URL Fragment rule box lets you add a static fragment at the end of all URLs in a current attribute:

Take the steps from Add a rule box to add the Add URL Fragment rule box. UUID-5ef7c610-a1e4-858f-26cd-dad16997d7f9

Enter a desired fragment in Fragment (without #).

Select Save.

For example, you have the following values in the URL attribute and want to add the #section-1 fragment to all links. You can achieve this with the Add URL Fragment rule box by entering section-1 in Fragment (without #):

URL (before)URL (after)
https://www.amazon.com/Fluffy-Pajama-Pants-Green/dp/G00PJSF1UFhttps://www.amazon.com/Fluffy-Pajama-Pants-Green/dp/G00PJSF1UF#section-1
https://www.amazon.com/Warm-Wool-Socks-Red/dp/R00SCKS1WO?currency=EUR&utm_medium=product_sync&utm_source=google&utm_campaign=search_organichttps://www.amazon.com/Warm-Wool-Socks-Red/dp/R00SCKS1WO?currency=EUR&utm_medium=product_sync&utm_source=google&utm_campaign=search_organic#section-1

Create Image

The Create Image rule box lets you change any value in the attribute into a colored canvas that works as a basis for an image. You can use other edit image rule boxes to edit the image further.

Take the steps from Add a rule box to add the Create Image rule box. UUID-084a9af6-da5a-c50b-30ff-c5a5fec9a814

In Width (px), define the canvas width in pixels.

In Height (px), define the canvas height in pixels.

Select the Color field to pick the desired canvas color, enter a hex color code or select an attribute that contains the a hex color codes in Or Color Column.

In Image Format, select the type of the resulting image: jpg or png.

Select Save.

For example, you have an empty image attribute and want to create images instead. You can achieve this with the following setup of the Create Image rule box:

UUID-db04aa2f-a0e4-cc98-69fd-3babcd3fd59b

image (before)image (after)
UUID-47d20327-50a3-7578-268e-6422238a4de9

Mosaic Template

The Mosaic Template rule box lets you create a collage using images from the selected attributes.

Tip

You can add the Create Image rule box to create a canvas first. See Create Image.

Take the steps from Add a rule box to add the Mosaic Template rule box. UUID-28c3867f-d066-043c-94a7-18ef118b0adf

In Zoom, define what part of the image you want to zoom by choosing among different zoom methods: a combination of Top, Middle, or Bottom with Center, Left, or Right. Or leave None not to zoom the image.

In Orientation, select the collage orientation:

  • Portrait arranges the additional images below the main image.
  • Landscape arranges the additional images on the right from the main image.

In Image Column 1, select the attributes where the rule box should take the main image.

In Image Column 2-6, select the attributes from which the rule box should take the additional images.

In Image Format, select the type of the resulting image: jpg or png.

Select Save.

For example, you want to have a collage of several images from the same attribute. You can achieve this with the following setup of the Mosaic Template rule box:

UUID-11a2a0db-a294-a636-6f80-7537f27ee685

image (before)image (after)
UUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-beff82b1-3706-7bc8-fced-ef0e5ec96358

Resize Image

The Resize Image rule box lets you resize, zoom, change the format, and add a colored background to an image.

Take the steps from Add a rule box to add the Resize Image rule box. UUID-86097ad7-73d2-0636-76fd-2b05304e8dc8

In Width (px), define the canvas width in pixels.

In Height (px), define the canvas height in pixels.

Select No Background Color if you don't want to add any background or select the Background Color field to pick the desired color or enter a hex color code.

Select Padding to add the space between the objects in your image and the outer edge of your image. The platform adds padding to reach the size defined in Width and Height. For example, if a source image is 600x600 px and you want to modify it to 600x800 px, when you select Padding, the platform adds 0x200 px. The padding color is the same as in Background Color.

In Zoom, define what part of the image you want to zoom by choosing among different zoom methods: a combination of Top, Middle, or Bottom with Center, Left, or Right. Or leave None not to zoom the image.

In Image Format, select the type of the result image: jpg or png.

In Quality, enter the quality percentage of the output JPEG image to reduce the weight. The value can range from 0 to 100.

In JPEG Size Limit (KB), enter the kilobyte limit of the output JPEG image to reduce the weight of the output image.

Select Save.

For example, you want to resize the images and change their background color in the image attribute. You can achieve this with the following setup of the Resize Image rule box:

UUID-7f338301-3f2d-f363-12f1-6711399c80ae

image (before)image (after)
UUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-e591245e-a387-0af2-3758-bc9989c12569

Rotate Image

The Rotate Image rule box lets you resize, mirror, change the format, and add a colored background to an image.

Take the steps from Add a rule box to add the Resize Image rule box. UUID-6cc06348-f8a1-db9a-4816-0cd9bae76a15

In Rotate (degrees), define the angle of rotation.

Select the Background Color field to pick the desired color or enter a hex color code. If you don't select any color, the background becomes white.

In Mirror, select whether you want to mirror your images by choosing among None, Flip (x-axis), or Flop (y-axis).

In Image Format, select the type of the resulting image: jpg or png.

Select Save.

For example, you want to rotate the images and change their background color in the image attribute. You can achieve this with the following setup of the Rotate Image rule box:

UUID-12eca796-b599-b8ef-1ecc-ea59cfc8dc4f

image (before)image (after)
UUID-660b6256-6c8b-b2a4-56c4-1181d018d716UUID-1392f38a-7bc4-85ec-f76a-9cfab797fce0

The Separate Link and Take First Image rule box lets you leave only the first image and remove all other comma-separated images from the attribute.

Take the steps from Add a rule box to add the Separate Link and Take First Image rule box. UUID-89587e6c-2cfa-e871-8bfb-c246039a1ee8

In Delimiter, define the delimiter that separates your images.

Select Save.

For example, you have several images in the image attribute and want to leave only the first image for each item. You can achieve this with the Separate Link and Take First Image rule box:

image (before)image (after)
https://yourdomain.com/image/product/12345.jpg,http://yourdomain.com/image/product/45678.jpghttps://yourdomain.com/image/product/12345.jpg

The Separate Link and Take Last Image rule box lets you remove the first image and leave the rest of the comma-separated images in the attribute.

Take the steps from Add a rule box to add the Separate Link and Take Last Image rule box. UUID-2908b3e0-3506-15d3-f621-128e36e0f897

In Delimiter, define the delimiter that separates your images.

Select Save.

For example, you have three (3) images in the image attribute and want to remove only the first image for each item and leave the rest two (2) images. You can achieve this with the Separate Link and Take First Image rule box:

Show Grid Image

The Show Grid Image rule box lets you apply a grid over the images to let you see the position of the image elements. The grid only appears in the preview and disappears in the exported image.

Place this rule box below all other rule boxes to let it work properly.

Take the steps from Add a rule box to add the Show Grid Image rule box. UUID-817357d2-ce36-1fdf-ecc8-d315ad951b9b

In Grid, select show to see the grid that may help you position your image elements. Remember to hide it before saving the final image.

In Image Format, select the type of the resulting image: jpg or png.

Select Save.

For example, you have the following image in your image attribute and want to see the grid to check the position of your image elements. You can achieve this with the Show Grid Image rule box:

image (before)image (after)
UUID-61d3ef8d-08e1-ff0f-72ff-e9fe16f692f5UUID-a437e322-caab-19e7-ee7e-92470c10f841

Trim Image

The Trim Image rule box removes the useless space around your product image.

Take the steps from Add a rule box to add the Trim Image rule box. UUID-d4db1aa1-22d4-ebeb-55fa-5c6cbd341244

Select the Color field to pick the desired background color or enter a hex color code.

Select No Background color if you don't have any background color.

In Fuzziness (0-100), define the trim fuzziness from 0 to 100, where 0 means only the exact same color code as you selected in Color, and 100 removes the range of the shades similar to the selected color.

In Image Format, select the type of the resulting image: jpg or png.

Select Save.

If you have an image without a background, the color that you select in the Color field fills your image background. You don't need to set any fuzziness in this case.

For example, you want to remove all unused space and add a red background in your images. You can achieve this with the Trim Image rule box:

UUID-7e447c22-9f8e-8438-0f58-56067304866a

image (before)image (after)
UUID-e610947f-5795-5a5f-7758-1081968a3c58UUID-e11f0d83-50b9-5b94-5ea1-421c630400ac

Trim Image Border

The Trim Image Border rule box removes the border from your images.

Your images must have borders to let this rule box work properly.

Take the steps from Add a rule box to add the Trim Image Border rule box. UUID-641a1b10-b384-a612-b80c-6c9e2b8d3d91

In Mode, select one of two options:

  • auto detect border color: use this option if you don't know the border color.
  • trim selected border color: use this option if you know the border color.

Select the Border Color field to pick the color or enter a hex color code.

Select Save.

For example, you have the following image in your image attribute and want to remove the border. You can achieve this with the Trim Image Border rule box:

image (before)image (after)
UUID-41875a2a-14e1-f0a5-8f2c-83160e583667UUID-660b6256-6c8b-b2a4-56c4-1181d018d716

Use Image Designer Template

The Use Image Designer Template rule box lets you apply some ready Image Designer templates to your images if you have only a limited Image Designer version. This rule box lets you test the Image Designer functionality on a limited number of images. See Create and apply custom image templates.

Take the steps from Add a rule box to add the Use Image Designer Template rule box. UUID-9dec6d4c-11ad-fe55-dfa9-b5f92401f5d0

In Template, select one of the templates.

Select Save.

Important

When you modify images, they go through the Productsup image servers.

Each time you change and apply a template, the URL of the exported image changes and starts with https://gfx.productsup.io/.

Use Image Designer Template from Attribute

The Use Image Designer Template from Attribute rule box lets you apply a particular image template for a specific product by reading the template name from a selected attribute in the data. Before using this rule box, ensure that your imported data contains an attribute with the image templates names.

To use this rule box, you need the Image Designer feature activated in your organization. To activate Image Designer, contact your Customer Success Manager.

Take the steps from Add a rule box to add the Use Image Designer Template from Attribute rule box. UUID-3e4cc5c8-9981-acfc-043c-331ae3cc4e82

In Attribute, select the attribute that contains the templates names. The attribute comes from a previous stage. The attribute's values with the template names must match to the template names you create in Image Designer. The values are case insensitive.

Select Save.

For example, to add a template to your images, you need to add the rule box Use Image Designer Template from Attribute to your image link attribute and select the image template attribute containing the template names corresponding to each product ID, such as:

idimage template
1Christmas
2Warm Socks
3Last Pair

How is this guide?

On this page