This is a simple HTML-based tool (with Javascript) that allows you to input a colour hex code and export it as a PNG image. You can also set the dimensions of the image and choose a prefix name for the exported file (for example "Black" will output the file "Black_000000.png"
- Hex Code Input: Enter any valid hex colour code (e.g.,
#FF5733
,#000000
) to generate a PNG image of that colour. - Dimensions: Specify the width and height of the output image.
- File Name Prefix: Set a custom prefix for the image file name, making it easier to organise your colours/images.
-
Clone or download the repository to your local machine.
-
Open the
HEX-to-Image.html
file in your web browser. -
Enter your desired hex colour code in the input field.
-
Specify the width and height for your PNG image.
-
Choose a prefix name for the exported PNG file (optional).
-
Click the "Generate Image" button to create the PNG image.
-
Once you're happy with the output, hit "Download Image"
OR Simply use it here!
- Should work on any modern web browser!
No installation is required. Simply download the HEX-to-Image.html
file and open it in your browser.
This project is licensed under the MIT License. See the LICENSE
file for more details.
Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or bug fixes.