Get Dummy Image - A Placeholder Image Generator
Introduction
GetDummyImage is a simple placeholder image generator that allows you to create placeholder images with customizable dimensions, background colors, text, and more.
Usage
To generate an image, you can use the following URL pattern:
1https://getdummyimage.com/[width]/[height]?query_parameters
- width (required): The width of the image in pixels.
- height (optional): The height of the image in pixels. If not specified, it will default to the same value as the width.
Query Parameters
The following optional query parameters can be added to customize the generated image:
- text: The text to be displayed on the image.
- color: The color of the text in hexadecimal format without the hashmark (e.g., ffffff or fff).
- background: The background color of the image in hexadecimal format without the hashmark (e.g., dddddd or ddd).
- size: The size of the text in pixels.
- extension: The file extension of the generated image (e.g., jpg, png, webp). Defaults to webp if not specified.
Defaults
The service has the following default settings:
- Default Size: 640x480 pixels
- Default Background Color: #aabbcc
- Default Text Size: 32 pixels
- Default Text Color: white (#ffffff)
- Default Extension: webp
Examples
Generate a 800x400 image with the default settings:
1https://getdummyimage.com/800/400
Generate a 800x400 image with custom text, text color, and background color:
1https://getdummyimage.com/800/400?text=Hello&color=fff&background=bbb
Generate a 800x800 image with custom text size and extension:
1https://getdummyimage.com/800?size=24&extension=png