For a reliable ImageMagick convert add text to image workflow, add the wording first, then use Add Border to Image to place an even 1–500 pixel frame around the finished image without covering its pixels. The browser stage does not render a caption; it handles the framing stage of the job. It expands the canvas equally on all four sides, places the source image once at the border offset, and exports a PNG at the source’s original pixel scale. Nothing is uploaded: the file bytes, decoded pixels, canvas, and temporary download URL remain in the current browser tab. JPG, PNG, and WebP inputs are accepted up to 25 MiB within the displayed safety limits, while the expanded output must remain within a 20-megapixel canvas limit. Because the export is always PNG, a JPEG source is decoded and re-encoded, so its file size can increase. Transparency already inside a PNG or WebP remains transparent, but the new outer border is opaque. If the asset only needs a frame, stop after the browser export; if it also needs a title, subtitle, or watermark, add that wording with ImageMagick convert before applying the frame.

Separate the text from the frame
The search phrase describes two related but distinct edits: adding wording and adding a frame. ImageMagick’s convert command can draw wording directly onto an image. The browser tool in this workflow deliberately handles only the second operation; it is not a type layer, caption editor, or replacement for ImageMagick’s annotation controls.
Treating the edits as separate stages keeps the result predictable. Put the caption in place first, then frame that finished image. Because the border is added outside the source, it surrounds the caption and every original pixel instead of covering them. It also keeps typography adjustable until the composition is settled.
Add the wording with ImageMagick convert
Use ImageMagick convert for the typography, then save its result as a local PNG for the browser border stage. A basic lower-right annotation is:
convert input.jpg -gravity SouthEast -pointsize 24 -fill white -annotate +10+10 "Your text here" text-input.png
- Prepare the source. Choose a local JPG, PNG, or WebP and work on a copy if you want to retain the original. The command writes a separate output file rather than replacing the input.
- Run the command in a terminal. The SouthEast setting anchors the annotation near the lower-right, 24 sets the point size, white sets the fill color, and +10+10 supplies the placement offset.
- Inspect the rendered text. Open text-input.png and check that the title is readable against the image. Text is drawn over the source, so move it away from busy details or choose a contrasting fill. Change the gravity setting when the composition needs a different anchor, then adjust the offset or point size as needed.
- Keep the PNG for the next stage. Use text-input.png as the local file passed to the border tool. This preserves a clean division between typography and framing.
The command shows a basic solid-text treatment, not a complete caption layout. Font appearance depends on the fonts available to the local ImageMagick installation, so inspect the PNG rather than assuming a particular typeface. For advanced typography, layered captions, or design-specific effects, continue in ImageMagick or a desktop editor before exporting the final image.
Build the final border in three steps
When the text-bearing image is ready, open the Add Border to Image tool. The browser stage has three main actions.
- Choose a local JPG, PNG, or WebP. Select the text-bearing file from your device. It must be within the displayed file limit: accepted inputs are up to 25 MiB and must also fit the bounded decoded-dimension policy. Processing happens in the current browser tab, so the source file is not uploaded.
- Set the border width and color. Enter a whole-number width from 1 to 500 pixels and choose a solid six-digit hexadecimal color. The tool applies the same width to every side and fills the new outer area with an opaque color. It cannot assign different widths to the top, bottom, left, and right.
- Select Add border and check the result. Verify the expanded dimensions shown by the tool, then download the PNG. The completed canvas is checked against the 20-megapixel limit after the border is added, so an over-limit result fails visibly instead of being presented as a valid export.
Unsupported files, malformed colors, invalid dimensions, excessive border sizes, decode failures, missing canvas support, and empty PNG output also fail visibly. Changing the file, width, or color invalidates the previous result and releases its temporary Object URL. A delayed export from an earlier selection cannot replace a newer choice.
Verify the expanded canvas
The canvas grows by the border width on both the left and right, and on both the top and bottom. The dimensions can therefore be checked with this formula:
Output width = source width + (2 × border width)Output height = source height + (2 × border width)
For example, an 800 × 600 source with a 20-pixel border becomes 800 + (2 × 20) = 840 pixels wide and 600 + (2 × 20) = 640 pixels high. The original image begins at x=20 and y=20, leaving the new frame outside it.
Use the dimensions displayed by the tool to confirm that the expanded image fits its intended layout. If the resulting canvas would exceed 20 megapixels, the browser tool stops with a visible failure rather than creating an over-limit PNG.
Review formats, limits, and output behavior
The tool’s accepted values define a focused, single-frame workflow:
| Control or limit | Accepted value | Result |
|---|---|---|
| Input type | JPG, PNG, or WebP | Decoded locally in the current tab |
| Input size | Up to 25 MiB | Must also satisfy the bounded decoded-dimension policy |
| Border width | Whole number from 1 to 500 pixels | Applied equally to all four sides |
| Border color | Six-digit hexadecimal color | Solid, opaque outer fill |
| Output format | PNG | Full-resolution export after adding the frame |
| Output canvas | No more than 20 megapixels | Checked after the border is added |
Because the output is always PNG, a source JPEG’s compressed data is decoded and re-encoded. The source pixels are not stretched, but the resulting file can be larger than the original JPEG. Transparent pixels inside the source remain transparent, while the newly added outer frame is opaque. This means “the image is not resized” should not be confused with “the exported file is byte-for-byte identical.”
Decoding, drawing, PNG encoding, and download creation happen locally in the browser. The local implementation follows standard browser canvas techniques: MDN documents drawing an image onto a canvas with drawImage and encoding a canvas into a downloadable blob with toBlob.
Know what the frame leaves unchanged
Add Border to Image does not crop, stretch, resample, blur, or cover the source image. The original picture is drawn once at the selected offset, and its pixels remain at their original scale. The border occupies newly added space outside those pixels rather than replacing them.
The result is a rectangular solid frame only. It does not create rounded corners, decorative patterns, gradients, shadows, captions, print bleed, color profiles, or vector borders. For a clean text-and-frame composition, placing the wording before the border also prevents a later annotation from being painted across the finished outer edge.
Choose the right tool for advanced production
This browser workflow fits a single local image and a straightforward solid frame. For color-managed printing, exact physical dimensions, batch processing, layered editing, or non-destructive design work, use a desktop image editor. ImageMagick remains useful when command-driven annotation or repeatable file processing is required, while a design application provides more precise control over captions, typography, and layered layouts.
For the simplest dependable sequence, create the text locally with ImageMagick convert, save the result as PNG, open it in Add Border to Image, choose the border width and color, verify the expanded dimensions, and download the final PNG.
If you're weighing options, How to Add Text to GIF in Telegram covers this in detail.
If you're weighing options, Text to ASCII Art Generator Patorjk: Image Workflow covers this in detail.