User Rating 0.0
Total Usage 0 times
92%
Is this tool helpful?

Your feedback helps us improve.

About

Generating pixel-perfect images for social media banners, placeholder graphics, or UI mockups typically requires heavyweight software. Miscalculated dimensions produce blurred assets on retina displays. Incorrect color spaces cause unexpected shifts when exported. This tool constructs images procedurally on an HTML Canvas at exact pixel dimensions you specify. It supports layered composition of geometric primitives (rectangles, circles, stars with n points, regular k-gons), text with font control, linear and radial gradients defined by stop positions, and uploaded raster images. All rendering occurs client-side. No data leaves your browser.

The coordinate system uses standard screen-space: origin at top-left, x increasing rightward, y increasing downward. Exported files use sRGB color space. JPEG quality maps to the Canvas API compression parameter ranging from 0.0 to 1.0. Note: this tool approximates print-ready output assuming 72 DPI screen resolution. For 300 DPI print, multiply your target dimensions in inches by 300.

image generator custom image canvas editor shape generator image creator png generator graphic design tool

Formulas

Star vertices are computed by alternating between an outer radius R and an inner radius r at angular steps. For a star with n points, vertex i sits at angle:

θi = 2πi2n π2

For even indices, the radius used is R (outer). For odd indices, the radius is r (inner). The Cartesian coordinates become:

xi = cx + radius cos(θi)
yi = cy + radius sin(θi)

Where cx, cy are the center coordinates. Regular polygons use the same formula with constant radius R and 2n replaced by n. Gradient color interpolation follows linear RGB blending between color stops at positions t [0, 1]. JPEG compression quality q maps directly to the Canvas toBlob second argument as a float in [0, 1].

Reference Data

PresetWidth pxHeight pxAspect RatioCommon Use
Instagram Post108010801:1Feed square post
Instagram Story108019209:16Story / Reel cover
Facebook Cover8203122.63:1Page cover photo
Twitter Header15005003:1Profile banner
YouTube Thumbnail128072016:9Video thumbnail
LinkedIn Banner15843964:1Profile background
Open Graph12006301.91:1Link preview image
Favicon5125121:1Browser tab icon
HD 720p128072016:9Presentation slide
Full HD 1080p1920108016:9Desktop wallpaper
4K UHD3840216016:9High-res display
A4 at 72 DPI5958421:1.414Screen document
A4 at 300 DPI248035081:1.414Print document
US Letter 72 DPI6127921:1.294Screen letter
Pinterest Pin100015002:3Optimal pin size
App Icon iOS102410241:1App Store icon
Email Header6002003:1Newsletter banner
Twitch Banner12004802.5:1Channel offline banner

Frequently Asked Questions

This tool caps canvas dimensions at 4096 × 4096 pixels. Most browsers allocate a fixed GPU memory budget for canvas buffers. Exceeding roughly 16 megapixels (e.g., 4096 × 4096 = 16,777,216 pixels) may cause the browser to fall back to software rendering, which dramatically slows draw calls. For print-quality A3 at 300 DPI (3508 × 4961), consider generating at half scale and upscaling in dedicated software.
JPEG uses lossy DCT-based compression. Text edges create high-frequency spatial data that DCT quantization degrades visibly, especially at quality values below 0.85. For images containing text or sharp geometric edges, use PNG export which is lossless. If JPEG is required, set quality to 0.92 or higher to minimize blocking artifacts around high-contrast boundaries.
Elements render in the order they appear in the internal array. The first added element draws at the bottom, the most recent on top. Use the "Bring Forward" and "Send Back" controls in the element properties panel to rearrange. The Canvas 2D API has no native z-index; the tool implements ordering by sorting the element array and re-rendering all elements sequentially each frame.
The tool offers a curated set of web-safe fonts (Arial, Georgia, Courier New, Verdana, Times New Roman, Impact) that render identically across all browsers and operating systems. Custom web fonts require asynchronous loading via the FontFace API, and if the font fails to load the canvas silently falls back to the default sans-serif. The selected fonts guarantee visual consistency in exported images.
Yes. Each element has an opacity slider ranging from 0 (fully transparent) to 1 (fully opaque). The tool applies globalAlpha to the Canvas context before drawing each element. Note that PNG export preserves alpha transparency in the background, while JPEG does not support alpha and will render transparent regions as white.
Uploaded images are stored as Base64 data URLs in localStorage for session persistence. This means they survive page refreshes. However, localStorage is limited to approximately 5-10 MB depending on the browser. Large images may exceed this quota. The tool will display a warning toast if storage fails. Clearing browser data will remove all saved state including uploads.