How to make Image format converter jpg to png

in this Post we will discuss about to make a tool which can convert an image format like jpg to png, jpeg to gif, png to jpeg etc.

Akhilesh Pal

9/3/20241 min read

a satellite image of a mountain range with a lot of trees
a satellite image of a mountain range with a lot of trees

How to make your own Image format converter

In This Session we will talk about to make an image converter by sketch, and we will use all free resources to make this tool / Software working like ChatGPT, Gemini, etc.

Define Your Requirement

First you have to write down your requirements like how much formats on an image generally used like JPEG, PNG, GIF, and other formats.

after making a list of image formats you have to choose an AI Like ChatGPT or Google's Gemini .

You can choose as per your preference and easy to use

How write code by AI

Now we have to give a prompt to our AI and then ai will generate code for us to make an Image Converter a sample prompt is

"make an Image format converter with attractive UI option to upload pic and auto detect format, drag and drop upload option, a list of all image formats which user can choose to convert his image, a button to text convert now, show preview of uploaded image and converter image a symbol of download on converted image to download converted image, add 5 second delay on each button make button style 3D Gradient Color"

Check You Code in a Live Code Editor

After Getting Code From ChatGPT You have to check Your Code in Liv code Editor and check all functions, if you notice some difficulty you can change the code by giving prompt to chat gpt and that will generate a new code.

after satisfying you can embed this code to your web page Like Below