Back to API Hub

Color Image Generator

Generate solid color images via URL parameters

Generate Image

API Documentation

Generate solid color images dynamically using URL parameters. Perfect for placeholders, backgrounds, and testing.

URL Pattern:

https://www.dev.nebulawp.org/api/colorimage.php/color_HEXCODE/size_WIDTHxHEIGHT/type_FORMAT

Parameters:

  • {hex} - 6-character hex color code without #
  • {width} - Width in pixels (1-2560)
  • {height} - Height in pixels (1-1440)
  • {format} - png, jpg, jpeg, or svg

Example Usage:

https://www.dev.nebulawp.org/api/colorimage.php/color_ff5733/size_1920x1080/type_png

In HTML:

<img src="https://www.dev.nebulawp.org/api/colorimage.php/color_ff5733/size_800x600/type_jpg" alt="Color">

💡 Pro Tip:

Use different color codes for different images. Perfect for placeholders and testing!