Logo Text Blaze

  • Docs
  • Community
  • Documentation

    Loading...

    Community Forums

    Loading...
Add to Chrome –  It's Free! Go to Dashboard ›
Commands

{image}

Summary: Include a dynamic image in the snippet.
Sample Usage
If you invested ${formtext: name=investment; default=10000; width=10} today and it grew at a rate of {formtext: name=rate; default=20; width=4}% a year, you would see the following increase:

{image: https://quickchart.io/chart?width=600&height=300&bkg=transparent&c=\{"type": "bar","data": \{"datasets": [\{"label": "Investment Size ($)", "data": [{=join([investment * (1 + rate/100)^(i-1) for (y, i) in seq(0, 11)], ",")}]\}], "labels": [{=join(seq({time:YYYY}, {time:YYYY} + 11), ",")}]\}\}}
_

Settings


Setting NameTypeDescription
PositionaltextThe URL for the image.
widthnumberThe width of the image in pixels.
heightnumberThe height of the image in pixels.
General Command Settings
trimyes/no/left/rightIf yes whitespace is removed before and after the command. If left, only whitespace to the left is removed. If right, only whitespace to the right is removed.
image is a Connected Snippet command. Connected Snippets are advanced commands currently in Beta. They may change in the future.

The image command allows you to include URLs that resolve into images in your snippets.

Various services that exist that will create dynamic images based on a URL such as charts or maps. The example above uses QuickChart.io.

If the image URL contains characters that have special significance in Text Blaze commands, they must be escaped with backslashes. Notably {, }, \ and ; should be escaped by placing a single \ before them.

For example, { would become \{ and \ would become \\.

See the Escaping Special Characters section of the Formula Blaze Reference page to learn more.

Dynamic Images vs Static Images

If you want to include a static image in the snippet, rather than using the image command you should import the image by clicking the picture icon in the styling toolbar.

The maximum allowed size for an image when uploading a static image is 2MB.

The image command is primarily for dynamic images where the image URL may change.

Sharing snippets containing the image command

When sharing snippets with others, snippets containing the image command may only be shared with members of your Text Blaze Business organization.

  • Guides
    • Quick Start
    • Sharing Snippet Folders
    • Dynamic Commands
    • Date and Time
    • Autopilot
    • Forms
    • Tidying Whitespace
    • Lists
    • Teams and Organizations
  • Tutorial Videos
  • Showcase
  • Frequently Asked Questions
  • Formula Reference
  • Dynamic Commands
    • Using Dynamic Commands
    • {=} (Formula Command)
    • {click}
    • {clipboard}
    • {cursor}
    • {error}
    • {formdate}
    • {formmenu}
    • {formparagraph}
    • {formtext}
    • {formtoggle}
    • {if}
    • {import}
    • {key}
    • {link}
    • {note}
    • {repeat}
    • {site}
    • {snippet}
    • {time}
    • {user}
    • {wait}
  • Connected Snippets
    • Connected Snippets Overview
    • {image}
    • {urlload}
    • {urlsend}
    • {dbselect}
    • {dbinsert}
    • {dbupdate}
    • {dbdelete}
  • Command Packs
    • Capitalize
    • Gmail
    • LinkedIn
    • Randomize

About

Plans and Pricing
Sharing Snippets
Text Blaze for Business
Forms
Autopilot
Dynamic Commands
Command Packs

Support

Get Started with Text Blaze
Contact Us
Documentation
Community Forum
Blog

Solution for

Teams
Customer Support
Recruiters
Education
Healthcare
Sales
Property Managers

Other

Privacy Policy
Terms of Service
Open Source Licenses
Affiliate
© 2023 Blaze Today Inc