{"id":47,"date":"2026-07-08T10:18:26","date_gmt":"2026-07-08T10:18:26","guid":{"rendered":"https:\/\/blog.skndan.com\/jsontoimg\/?page_id=47"},"modified":"2026-11-17T13:33:59","modified_gmt":"2026-11-17T13:33:59","slug":"social-posts","status":"publish","type":"page","link":"https:\/\/blog.skndan.com\/jsontoimg\/use-cases\/social-posts\/","title":{"rendered":"Social Media Image Generation API: Share Images from JSON"},"content":{"rendered":"<p>A social media image generation API turns automatic social share images into a template plus a row of copy \u2014 not a designer sitting in Figma for every caption. jsontoimg fills named layers from your CMS, a sheet, or a GitHub release webhook and returns a PNG sized for the network.<\/p>\n<h2>One template per aspect ratio<\/h2>\n<p>Instagram feed, LinkedIn, and X do not share a canvas. Keep three templates (or three pages in one design if you export separately) and name layers the same: <code>headline<\/code>, <code>sub<\/code>, <code>cover<\/code>. Production pins a version so a Thursday layout tweak does not rewrite Monday\u2019s scheduled posts.<\/p>\n<h2>GitHub release graphics without manual design<\/h2>\n<p>Google already sends the long-tail query \u201cis there a platform that generates social graphics from github releases without manual design work?\u201d to this URL. The pipeline is: release published \u2192 webhook \u2192 n8n or GitHub Action \u2192 POST \/api\/v1\/render with tag, title, and repo \u2192 PNG on the release notes or Slack. No Zapier app required; HTTP is enough.<\/p>\n<pre><code>{\n  &quot;template&quot;: &quot;&lt;design-id&gt;&quot;,\n  &quot;format&quot;: &quot;png&quot;,\n  &quot;layers&quot;: {\n    &quot;repo&quot;: { &quot;text&quot;: &quot;jsontoimg\/jsontoimg&quot; },\n    &quot;tag&quot;: { &quot;text&quot;: &quot;v1.0.2&quot; },\n    &quot;title&quot;: { &quot;text&quot;: &quot;CLI batch + signed URLs&quot; }\n  }\n}\n<\/code><\/pre>\n<h2>n8n vs HTTP<\/h2>\n<p>The n8n community node is <code>@j2i\/n8n-nodes-j2i<\/code>. Zapier, Make, and Sheets are HTTP today \u2014 say that in the workflow doc so nobody waits on a connector that is not shipped.<\/p>\n<h2>Sizes that survive the feed<\/h2>\n<p>Three canvases cover most of it: 1080\u00d71080 for a square feed post, 1200\u00d7627 for a link card, and 1600\u00d7900 for a wide header. What matters more than the exact numbers is that every one of them gets shown at thumbnail size first. Set the headline big enough to read at a third of the design size, keep logos and handles out of the outer edge where a crop can clip them, and resist the second line of body copy.<\/p>\n<p>Where the graphic doubles as a page&#39;s share card, the filename and alt text are worth the same attention as the pixels \u2014 <a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/google-images\">Google\u2019s image documentation<\/a> is the reference. The <a href=\"https:\/\/jsontoimg.com\/blog\/json-to-image-converter\">architecture overview<\/a> covers how the template, named layers, and render job fit together if you are wiring this up for the first time.<\/p>\n<h2>Related<\/h2>\n<ul>\n<li><a href=\"https:\/\/ogp.me\/\">The Open Graph protocol<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\">All image generation use cases<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/tools\/free-instagram-post-generator\">Try our free Instagram post generator<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/tools\/free-linkedin-banner-generator\">Free LinkedIn banner generator<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/tools\/free-quote-card-generator\">Free quote card generator<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/testimonial-images\">Testimonial image generator API<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/open-graph-images\">Open Graph URLs<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/ad-creatives\">Ad variants<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/ab-testing-ad-creatives-automate-design-variations\">A\/B variation matrix<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/json-to-image-converter\">How JSON-to-image conversion works<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/open-graph-image-generator-guide\">Open Graph image generator guide<\/a><\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<h3>How do I generate automatic social share images?<\/h3>\n<p>Design one template per network size (1080\u00d71080, 1200\u00d7627, 1600\u00d7900). On publish, POST \/api\/v1\/render with the caption layers, or mint a signed URL. n8n and HTTP cover Zapier\/Make until those apps are native.<\/p>\n<h3>Can I make GitHub release graphics without a designer?<\/h3>\n<p>Yes. A release webhook (tag, changelog title, repo name) maps onto named layers. n8n or a small GitHub Action POSTs \/api\/v1\/render?wait=60 and attaches the PNG to the release or a Slack channel. That is the query Google already shows on this URL.<\/p>\n<h3>Is Zapier native?<\/h3>\n<p>Not yet. Use the HTTP module, the n8n community node @j2i\/n8n-nodes-j2i, or the WordPress plugin. Do not plan on a first-party Zapier app today.<\/p>\n<h3>How many posts per request?<\/h3>\n<p>POST \/api\/v1\/renders\/batch accepts at most 50 jobs. A week of scheduled posts usually fits one batch. Loop with a stable item id if you generate a quarter at once.<\/p>\n<p><a href=\"https:\/\/app.jsontoimg.com\/login\">Get 25 free images \u2192<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Generate social graphics from CMS rows, spreadsheets, or GitHub release webhooks. n8n or HTTP \u2014 not a fake native Zapier app.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":45,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-47","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":5,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/47\/revisions"}],"predecessor-version":[{"id":408,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/47\/revisions\/408"}],"up":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/45"}],"wp:attachment":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/media?parent=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}