Hearts rating
Rating styletype: "rating"Render scores as rows of hearts with partial fills and custom colors, updating the value on every API call. Generate heart rating images free with Imejis.
Design JSON — “Hearts” variant
{
"title": "Rating sample",
"description": "A dynamic star rating",
"dimensions": {
"width": 800,
"height": 420
},
"background": {
"color": "#ffffff"
},
"components": [
{
"id": "sample-rating",
"key": "score",
"type": "rating",
"position": {
"x": 260,
"y": 182
},
"rotation": 0,
"size": {
"width": 280,
"height": 56
},
"dynamic": true,
"properties": {
"value": 4,
"max": 5,
"iconShape": "heart",
"activeColor": "#EF4444",
"inactiveColor": "#E5E7EB",
"emptyStyle": "filled",
"partial": "exact",
"showValue": false,
"valueFormat": "decimal",
"opacity": 1
}
}
]
}Rating examples
Real renders of the hearts rating — each one is the same component with different property values, and the API payload below each preview reproduces it exactly.
Recipe favorite score
A 4.5-heart community rating for a food blog recipe card.
API overrides for this example
{
"score.iconShape": "heart",
"score.activeColor": "#EF4444",
"score.value": 4.5
}Lives left in a streak email
Two of five hearts remaining — a gamified nudge on a dark canvas.
API overrides for this example
{
"score.iconShape": "heart",
"score.activeColor": "#EF4444",
"score.value": 2,
"score.inactiveColor": "#374151"
}When to use the hearts style
- Like and favorite counts as visuals
- Health or lives indicators in gamified emails
- Valentine-themed campaign graphics
Use it dynamically via the API
Set '<key>.value' (or just '<key>') to the score for each render; max, colors and border props are overridable too.
Full API request with this variant's current values — the playground above sends only the properties you change
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"score.value": 4,
"score.max": 5,
"score.iconShape": "heart",
"score.activeColor": "#EF4444",
"score.inactiveColor": "#E5E7EB",
"score.emptyStyle": "filled",
"score.partial": "exact",
"score.showValue": false,
"score.valueFormat": "decimal",
"score.opacity": 1
}'Only send the properties you want to change — everything else keeps its design value. See the API documentation for all languages.
Other rating styles
See the rating component page for the full property reference and FAQs.