make_meme
Turn the user's photo into a meme in one call, in one of three layouts, and get the finished image as a download link. No meme images are bundled: the layout goes around THEIR photo. style classic: top and/or bottom text in an Impact-style condensed bold face (Anton if installed, then Oswald Bold, Bebas Neue, League Gothic, then the boldest condensed font that is, then any bold sans; the result says which), UPPERCASE unless uppercase is false, white with a black outline, centred, each fitted to a box about 92% of the width by 22% of the height at the top and bottom edges. style caption_bar: a white bar added above the photo with caption in black, left-aligned (Inter, Roboto or Open Sans if installed), the bar as tall as the text needs, at most 40% of the image. style demotivational: a black frame with a thin white keyline around the photo, title in a large serif (Playfair Display or Times if installed) and a smaller subtitle below, both white. The photo is not resized (a very large one is slow; the demotivational frame makes the canvas about 1.7 times larger, so photos over about 14 MP are refused by the pixel cap: resize first). It takes a checkpoint first and puts the image back if anything fails; on success the meme stays on the image as live layers (the text stays editable text layers) and the result gives the checkpoint id for the plain photo. Text longer than the box allows is shrunk down to a minimum size and then clipped (the result says so); keep it short.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | classic: the text at the top. | |
| image | Yes | Image id, as returned by open_photo. | |
| style | Yes | Which layout. | |
| title | No | demotivational: the title. | |
| bottom | No | classic: the text at the bottom. | |
| format | No | Output format. | jpg |
| caption | No | caption_bar: the caption. | |
| subtitle | No | demotivational: the smaller line under the title. | |
| uppercase | No | classic: set the text in UPPERCASE (default). false keeps the case you typed. |