Skip to content
HTML/CSS to ImageDocs

Use HTML/CSS to Image as an action in a Zap. A new product listing can trigger a GIF walkthrough of its webpage, or a form submission can fill a template and send the finished image as an email attachment.

Open HTML/CSS to Image on Zapier
  1. After your trigger, add an action and choose HTML/CSS to Image.
  2. Select an action event and connect your HCTI account. In Zapier’s User ID field, enter the API ID shown beside your key in the dashboard. Paste its matching secret into API Key. Find your API credentials
  3. Map data from your trigger into the action, then test the step. Use the returned fields when configuring the next step.
Action What to use it for Required Permission
Create Recording From HTML Record HTML and CSS as a silent MP4, WebM, or GIF. images:create
Create Recording From URL Record a webpage, optionally scrolling or clicking through it. images:create
Fetch Recording Status Check a recording once by ID. Returns its status and any rendering error. images:read
Convert HTML to Image Render HTML and optional CSS as an image or PDF. images:create
Capture a Website Screenshot Capture a webpage, a single element, or the full page. images:create
Create Image From Template Fill a saved HCTI template with values from your Zap. images:create
Generate Signed Template URL Get a URL that renders a template with the supplied values when opened. images:create
Generate Signed Webpage URL Get a URL that captures the webpage when opened. Anyone with the signed URL can see the supplied options, including custom header values. images:create
Permanently Delete Image Delete one image. Enter its ID or map Image ID from the step that created it. images:delete
Permanently Delete Recording Delete one recording. Enter its ID or map Recording ID from the step that created it. images:delete

For signed URLs, HCTI checks the signing key’s permission when someone opens the URL. To choose a template, proxy, or storage destination by name, also grant the corresponding dropdown read permission. You can enter or map a known ID directly.

  1. Choose Create Recording From URL and map the webpage address into URL.
  2. Set Recording Format to GIF. Under Duration, enter 5000 milliseconds and choose Fixed length for a five-second clip. The default At most can end the clip early when the actions finish. Compare duration modes
  3. Under Recording timeline, choose Build actions here. Set Action 1 to Scroll Down the Page. Choosing an action reveals its settings and the next action picker. Leave the next picker blank to finish. To record a CSS animation without interactions, use Create Recording From HTML and leave the first picker blank.
  4. Test the step. Map Media URL to share the GIF by link. For an email attachment, turn on Include Downloadable File and map File into the email step’s attachment field.

For a prepared timeline, choose Use an action array as JSON and paste the array into Recording Actions as JSON. For a starting point, try one of the timeline examples. To wait until an element appears or your page calls window.RecordingReady(), set a recording start condition.

With Defer Rendering enabled and normal HCTI storage, opening Media URL starts the render. Fetch Recording Status reports the current state, so repeated status checks alone leave a deferred recording in awaiting_render. Deferred rendering

Choose Convert HTML to Image. HTML is the only required field. Paste a fragment such as <h1>Weekly sales</h1>, then replace the text with a value from an earlier step. Add styling in CSS. You can preview your HTML and CSS in CodePen.

To load multiple Google Fonts for an image, separate their names with a pipe, such as Roboto|Open Sans. See the Google Fonts examples.

Choose Capture a Website Screenshot and enter a full HTTP or HTTPS URL that HCTI can reach. Use Selector to capture one element, such as #invoice. Turn on Full Screen for the full height of a webpage, or Block Cookie Banners to hide supported consent banners. Screenshot examples

  • Dimensions. Set Viewport Width and Viewport Height together to control the viewport size, or leave both blank. Device Scale changes pixel density while preserving the layout size. For captures over 8,000 pixels on either side, set Jumbo Maximum Width and Jumbo Maximum Height together. See the jumbo image limits.
  • PDFs and attachments. Under Output and storage, choose Format → PDF. Under PDF layout, set all four Page Margins together if you supply any, using a value such as 12mm or 0 for each side. Turn on Include Downloadable File when the next step needs an attachment. Zapier retrieves File in the selected format when that step uses it. PDF layout examples

Choose Create Image From Template to produce an image, or Generate Signed Template URL to render it when someone opens the link. Pick a template by name or map its ID. Leave Template Version blank to use the latest version, or enter a version to keep the design fixed. Working with templates

In Template Variables, add one name/value pair per variable. A name like user.address.city is a single literal key. If your template uses {{user.address.city}} to read a nested object, open Advanced template input and paste the following object into Template Variables as JSON.

{"user": {"address": {"city": "New York"}}}

You can also map a JSON object from an earlier step. If both inputs supply the same top-level key, the name/value row takes precedence. Template variable examples

If a dropdown is empty, you can still enter or map a known ID. To browse the list, check the connected account and its API key permissions.

  • Proxy lists enabled proxies and requires proxies:read. Leave the field blank for normal routing. Manage proxies
  • Storage Destination lists enabled destinations and requires storage_destinations:read. Leave the field blank for your usual storage. Manage storage destinations
  • Template requires templates:read to list saved templates.

If a chart or other dynamic content is missing, try Millisecond Delay (500 is half a second). When you control the page, Wait for ScreenshotReady() lets your HTML signal when to capture. For a URL screenshot, enable Wait for Page Readiness and have the webpage add an element with the ID HCTIReadyNow when it is ready. Readiness examples

For a plan-limit error when creating an image, check your remaining credits in the HCTI dashboard. If you hit a rate limit while listing proxies or storage destinations, retry after the interval HCTI returns.

Zaps built with the original Create Image and Create Image From a URL actions keep working with their saved connections and mappings. In version 1.1.0 or newer those actions are labeled Create Image (Legacy) and Create Image From a URL (Legacy). Choose Convert HTML to Image or Capture a Website Screenshot when adding a new step.

Need help?

Talk to a human. Email support@htmlcsstoimage.com and we’ll help you get started.