🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Image Configurator Premium Add-on Setup Guide

Updated 10 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Installation
  5. Prepare Your Images
  6. Add the Field
  7. The Field Panel
  8. Base image
  9. Layers
  10. Text overlays
  11. A Worked Example: Custom T-Shirt
  12. The Live Preview
  13. Preview position
  14. The Saved Picture
  15. Entries and Notifications
  16. Prices and Totals
  17. Conditional Logic
  18. Phones and Accessibility
  19. Add-on Settings
  20. Developer Hook
  21. Troubleshooting
  22. Frequently Asked Questions
  23. Does it make requests to an outside service?
  24. Does it change my prices or totals?
  25. Can a customer upload their own picture into the preview?
  26. What happens when my license expires?
  27. Can I use the same images on several forms?
  28. Build it, see it, save it

Video walkthrough

Gravity Forms Image Configurator: Live Product Preview with Image Layers, Name Text and Saved PNG
Watch: build a live product preview with image layers and a name overlay in Gravity Forms, step by step. Watch on YouTube

Image Configurator adds one new field to Gravity Forms: Image Configurator (preview). It shows a picture that is built from stacked transparent images, and the images change when the visitor changes a choice in the form. A plain T-shirt becomes a red T-shirt with a star logo; a sofa gets another fabric and other legs. When the form is sent, the finished picture is composed on your server, saved with the entry, shown in the entry and linked in your notifications, so you and your customer see exactly what was ordered.

A Design your T-shirt form with choices for shirt colour, logo, extras and a name on the left and, on the right, a live preview of a red T-shirt with a yellow star, a white collar trim and the name ANNA
The preview sits beside the form and changes the moment a choice changes.

What You Get

  • A base image plus as many layers as you need. Each layer follows a radio buttons, drop-down, checkbox, multi-select or image choices field, with one image from the Media Library for every choice.
  • Per layer: a z-index, an x and y offset, an opacity, an image for when nothing is chosen yet, and layers that are always shown.
  • A text overlay: write a text field onto the picture, for example a name on a shirt, with one of four bundled open-licence fonts, a colour, a size, a position and an alignment.
  • A live preview that updates on every change, preloads its images, scales with the screen and stays beside the form on desktop.
  • A composed PNG saved in the Gravity Forms upload folder of the form, shown in the entry and linked in notifications.
  • Prices stay in Gravity Forms product and option fields. The configurator only shows.
  • Works with AJAX forms, multi-page forms and conditional logic.
  • No outside requests. Every image and font comes from your own site.

Requirements

  • Gravity Forms 2.9 or newer (tested with 2.9 and 3.1), WordPress 6.5 or newer and PHP 7.4 or newer.
  • The PHP GD extension with PNG support to save the composed picture. Text on the saved picture also needs FreeType in GD, which most hosts have. Without FreeType the preview still shows the text and the picture is saved without it; the add-on settings tell you.

Installation

  1. Install and activate the add-on in the usual way.
  2. Open Forms → Settings → Image Configurator, enter your license key and activate it.
  3. Prepare your images (see the next section), then add the field to a form.

Prepare Your Images

The preview is only as good as its layers, so a little preparation pays off. Export the base image and every layer as a PNG with a transparent background, all from the same canvas size when you can. A shirt colour layer is a full-size picture that contains only the shirt; a logo layer can be a small picture that you place with an offset. Upload them all to the Media Library first.

  • Layers keep their size relative to the base image. A layer that is half as wide as the base is drawn half as wide, in the preview and in the saved picture.
  • Layers that are exactly as large as the base need no offset: leave x and y at 0.
  • Use the same proportions for the base on every product so the preview column keeps its shape.
  • Files must be PNG, JPEG, GIF or WebP files inside your uploads folder.

Add the Field

  1. Open the form in the editor and add Image Configurator (preview) from the Advanced Fields group.
  2. Add the fields that drive it first: radio buttons, drop-downs, checkboxes or product and option fields for the choices, and text fields for any text overlay.
  3. Select the configurator field. The panel in the General tab has three blocks: the base image, the layers and the text overlays.
  4. Save the form and open it on your site.

The Field Panel

Base image

Choose the image at the bottom of the stack. The saved picture has its proportions. Saved width is the width in pixels of the picture that is saved with the entry; it is never wider than the base image and never wider than the limit in the add-on settings. Alternative text is read by screen readers. Preview position is described below.

Layers

Add a layer and choose what drives it. Always shown gives a layer that never changes, such as a shine or a shadow. Choosing a field lists its choices, and you pick an image for each one.

Setting What it does
Driven by The field whose choice picks the image. Radio buttons, drop-downs, checkboxes, multi-selects, and the choice types of product, option and shipping fields.
Image for each choice The image shown when that choice is selected. A choice without an image shows nothing for this layer.
Image when nothing is chosen Shown while no choice is selected, and also when the choice has no image. For a layer without a field it is the image itself.
z-index Higher numbers are drawn on top. Layers with the same number keep their order in the list. The arrows in the panel swap two layers.
x and y offset In percent of the base image width and height. Negative numbers move the layer left and up; a layer may reach beyond the picture.
Opacity From 0 to 100. Use it for shine, shadows and watermarks.

A checkbox field can show several layers at once: every checked choice with an image is drawn, in the z-order of the layer.

Text overlays

A text overlay writes the value of a text field onto the picture. Choose the field, a font, a colour, a size, a position and an alignment.

Setting What it does
Text from A single line text, paragraph text, number, phone, email, website or hidden field.
Font Montserrat Bold, Be Vietnam Pro Bold, Charm Bold or Charm Regular. All four are bundled under the SIL Open Font License, so nothing is loaded from outside.
Colour and opacity Any colour, with an opacity from 0 to 100.
Size In percent of the picture width, so the text scales with the picture.
x, y and align The anchor point in percent of the picture. The text is placed by the left, centre or right edge of its letters and by the vertical middle of its capital letters.
Max characters and UPPERCASE The text is cut to the limit and can be forced to capitals. Tags and line breaks are removed.

A Worked Example: Custom T-Shirt

The form has a radio field Shirt colour, a radio field Logo, a checkbox field Extras and a text field Name on the shirt. The configurator field has four layers and one text overlay.

Layer or overlay Driven by Images and settings
Shirt Shirt colour White, Red, Navy and Green shirt pictures; White also set as the image when nothing is chosen; z-index 1.
Sheen Always shown One semi-transparent picture at 25 percent opacity; z-index 2.
Logo Logo Star, Ring and Triangle pictures placed at x 35 and y 31.25; z-index 3. None has no image, so no logo shows.
Extras Extras Collar trim and Sleeve stripes pictures; z-index 4.
Text overlay Name on the shirt Montserrat Bold, white, size 6, x 50, y 75, centred, 14 characters.

The Live Preview

When the page loads, the base image and every layer image are requested at once, so a change shows without waiting. The preview then listens to the form: when a choice or a text changes, the matching layers are switched on and off and the text is redrawn. Nothing is sent to the server while the visitor plays with the form.

The preview scales with the width of its column and keeps the proportions of the base image. Layers are placed in percentages, so the picture looks the same on a phone and on a wide desktop.

Preview position

  • Beside the form (sticky): on screens wider than 900 pixels the preview sits in a second column and stays in view while the visitor scrolls. On phones it sits above the form. This is the default.
  • Where the field is: the preview appears in the form at the place of the field.
The last page of a three step Design your T-shirt form with a Previous button and a Send my design button, and a preview that already shows the colour and the name chosen on earlier pages together with the logo and the sleeve stripes
On a multi-page form the preview stays in view on every page and follows fields from all of them.

On a multi-page form the beside-the-form position keeps the preview visible on every page, even when the configurator field is on the last page. The preview reads the fields of all pages.

The Saved Picture

When the form is submitted, the add-on takes the answers from the submission, draws the base image, the active layers in z-order and the text overlays with PHP GD, and writes a PNG. The picture is made from the choices on the server, not from anything the browser sends, so it cannot be tampered with.

  • The file is saved in the Gravity Forms upload folder of the form, next to the other uploads, with a name such as imgconf-26-6-k3x9w2ab.png. Folders are protected with index files like other Gravity Forms uploads.
  • The entry value is the address of the picture. It is shown in the entry, in the entry list as a thumbnail and in exports as the address.
  • Transparent areas of the base image stay transparent.
  • When an entry is deleted its picture is deleted too. You can keep the files instead in the add-on settings.

Entries and Notifications

In the entry the picture is shown with a link to the full size. In a notification, all_fields shows a text link and a picture, and the merge tag of the field gives the address. Add a modifier to get markup.

<p>New design from {Your name:7}</p>
{all_fields}
<p>Link: {Your design:6}</p>
<p>{Your design:6:img}</p>
<p>{Your design:6:link}</p>
Merge tag Result
Your design:6 The address of the picture.
Your design:6:img An image tag (HTML notifications).
Your design:6:link A link with the text View the composed image (HTML notifications).

Replace Your design and 6 with the label and the id of your field. Notifications that Gravity Forms sends in the background work the same way, because the address is read from the saved entry.

Prices and Totals

The configurator never changes a price. Put the prices on Gravity Forms product and option fields, add a Total field and let the same choices drive the layers. The choice of a product or option field posts its value with the price attached; the add-on matches the value and ignores the price.

A Build your sofa form with fabric and legs choices, a total of 990 dollars and a live preview of a forest green sofa with black legs in a room
Prices stay in Gravity Forms product and option fields; the preview only shows the result.

Conditional Logic

If conditional logic hides a field that drives a layer or a text overlay, that field is ignored: in the preview the layer falls back to its default image, and in the saved picture it does the same. The same holds when the visitor changes an answer so that a field disappears. You can also put conditional logic on the configurator field itself.

Phones and Accessibility

  • The preview is exposed as an image with your alternative text; the layers are decorative.
  • Every choice stays a normal Gravity Forms input, so keyboards and screen readers work as before.
  • The preview fades in when its images are ready and does not animate for people who prefer reduced motion.

Add-on Settings

Setting What it does
Largest saved picture The upper limit in pixels for the saved width of all fields. Default 1600.
When an entry is deleted Delete its composed picture (default) or keep the file.

Developer Hook

geic_client_config changes the data given to the preview before it is printed, for example to change image addresses.

// Add a version tag to every image address the preview loads.
add_filter( 'geic_client_config', function ( $data, $form ) {
    $data['base'] = add_query_arg( 'v', '2', $data['base'] );
    return $data;
}, 10, 2 );

Troubleshooting

Problem Check
No preview on the form The license key must be active, the field needs a base image, and the base image must be a PNG, JPEG, GIF or WebP file in your Media Library. Editors see a notice when the base image is missing.
A choice shows nothing Open the layer and check that the choice has an image. The choice text must be unchanged since you picked the image; if you renamed a choice, pick its image again.
The text is not on the saved picture The server needs FreeType in PHP GD. The settings page says when it is missing; ask your host to enable it.
No picture in the entry The server needs PHP GD with PNG support, and the upload folder of Gravity Forms must be writable. Check the Gravity Forms logs.
The preview is cut off or too small The preview takes the width of its column. Try the position Where the field is, or give the form more room.
Layers are in the wrong order Higher z-index is drawn on top. Use the arrows in the panel or change the numbers.

Frequently Asked Questions

Does it make requests to an outside service?

No. Images and fonts come from your own site and the picture is composed by your own server.

Does it change my prices or totals?

No. Prices stay in Gravity Forms product and option fields.

Can a customer upload their own picture into the preview?

Not in this version. The layers are the images you prepared, which keeps the saved picture under your control.

What happens when my license expires?

The preview is not shown and no new picture is made. Your forms, entries and the pictures already saved stay as they are.

Can I use the same images on several forms?

Yes. Each field has its own setup but all of them use the Media Library.

Build it, see it, save it

A live preview made of stacked images, a text overlay and a composed picture saved with every entry.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr