- Components
- Shapes
- Heart
Heart Shapes
A ready heart path for likes, favorites and love-themed visuals, recolored on every API call. Add heart shapes to generated images free with imejis.
Updated

What this style sets
A style is the shapes component with a few properties set. Send these, or start from the style in the editor.
{
"star.path": "M 50 88 C 22 66 6 48 6 30 C 6 15 17 6 29 6 C 38 6 46 11 50 19 C 54 11 62 6 71 6 C 83 6 94 15 94 30 C 94 48 78 66 50 88 Z",
"star.fillColor": "#EF4444",
"star.strokeColor": "transparent"
}Good for
- Like and favorite milestone graphics
- Valentine campaign visuals
- Health and wellness imagery
Try your own data
Change the heart shapes here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.
Examples
Each example is the same heart shapes with different values. The JSON is what you send.
Like milestone badge
A pink heart for a "10K likes" celebration graphic posted when a milestone is hit.
{
"star.path": "M 50 88 C 22 66 6 48 6 30 C 6 15 17 6 29 6 C 38 6 46 11 50 19 C 54 11 62 6 71 6 C 83 6 94 15 94 30 C 94 48 78 66 50 88 Z",
"star.fillColor": "#EC4899",
"star.strokeColor": "transparent"
}Wellness heart on dark
A soft coral heart as the focal mark of a dark health-app weekly summary image.
{
"star.path": "M 50 88 C 22 66 6 48 6 30 C 6 15 17 6 29 6 C 38 6 46 11 50 19 C 54 11 62 6 71 6 C 83 6 94 15 94 30 C 94 48 78 66 50 88 Z",
"star.fillColor": "#F87171",
"star.strokeColor": "transparent"
}New values, every render
Recolor per render with '<key>.fillColor'; strokeColor, strokeWidth and even the path are overridable. Send only the properties you want to change; everything else keeps its design value. The API guides cover every language.
curl -X POST "https://render.imejis.io/v1/$IMEJIS_DESIGN_ID" \
-H "dma-api-key: $IMEJIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"star.fillColor": "#EF4444",
"star.path": "M 50 88 C 22 66 6 48 6 30 C 6 15 17 6 29 6 C 38 6 46 11 50 19 C 54 11 62 6 71 6 C 83 6 94 15 94 30 C 94 48 78 66 50 88 Z",
"star.strokeColor": "transparent"
}' \
-o image.pngconst res = await fetch(`https://render.imejis.io/v1/${process.env.IMEJIS_DESIGN_ID}`, {
method: "POST",
headers: {
"dma-api-key": process.env.IMEJIS_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"star.fillColor": "#EF4444",
"star.path": "M 50 88 C 22 66 6 48 6 30 C 6 15 17 6 29 6 C 38 6 46 11 50 19 C 54 11 62 6 71 6 C 83 6 94 15 94 30 C 94 48 78 66 50 88 Z",
"star.strokeColor": "transparent"
}),
})
if (!res.ok) throw new Error(`render failed: ${res.status}`)
const image = Buffer.from(await res.arrayBuffer())import os
import requests
response = requests.post(
f"https://render.imejis.io/v1/{os.environ['IMEJIS_DESIGN_ID']}",
headers={
"dma-api-key": os.environ["IMEJIS_API_KEY"],
"Content-Type": "application/json",
},
json={
"star.fillColor": "#EF4444",
"star.path": "M 50 88 C 22 66 6 48 6 30 C 6 15 17 6 29 6 C 38 6 46 11 50 19 C 54 11 62 6 71 6 C 83 6 94 15 94 30 C 94 48 78 66 50 88 Z",
"star.strokeColor": "transparent"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other shapes styles
Heart Shapes questions
What does the Heart style change on the shapes component?
A heart path — likes, favorites and love-themed visuals. It sets 3 properties on the shapes component: path, fillColor, strokeColor. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the heart shapes through the API?
Add a shapes component to a design, then send its data together with the style's properties as flat overrides (for example star.path and star.fillColor) in the render request. Each render can carry different data while keeping the Heart look.
Can I use my own SVG shapes?
Yes — the path property takes raw SVG path data with a matching viewBox, so any single-path vector renders directly.
Can I change the shape or color per API call?
Yes — '<key>.fillColor' recolors it, and strokeColor, strokeWidth and even the path itself are overridable per render.
Where the shapes component fits
Free tools built on it, guides that use it, and the components that sit beside it.


