placeholder() helper.
Render a placeholder
Providesize for a square, or provide width and height for a custom aspect ratio.
Use a helper
Useplaceholder() when you need the selected image URL or SVG markup outside a component.
Preview
640 x 360

Set dimensions
Square sizes accept 16–2048 logical pixels. Custom width and height values each accept 16–4096 logical pixels. At standard density, width multiplied by height may not exceed 4,194,304 pixels. SVG output includes matchingwidth, height, and viewBox attributes, giving it an explicit default size and aspect ratio while remaining scalable.
Render retina images
Setdensity to 2 or 3 for high-density JPEG, PNG, or WebP output. Pictum keeps the requested dimensions as the logical size and multiplies each raster axis by the density. For example, 640x360@3x.png contains 1920×1080 pixels while retaining the default “640 x 360” label.
JPEG and PNG output also carries 144 DPI metadata for @2x or 216 DPI for @3x. Browsers still use the physical raster dimensions intrinsically, so set the logical width and height when rendering the image.
Rendered dimensions may not exceed 4096 pixels on either side or 4,194,304 total pixels after applying the density multiplier. SVG is already resolution-independent and does not accept a density.
Use density variants in srcset and set the image’s logical display dimensions:
Customize appearance
Components and helpers accept the following options:Choose a format
Direct HTTP access
The OpenAPI reference documents dimension constraints, query customization, caching, and validation errors.