Click here to Skip to main content
15,921,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my projects, the customer or suppliers will upload the images, the images will be in gif,png,bitmap,tiff or any image formats.
My question is how to convert this format to jpg image formats. By using javascript or .net, but i need the solution as soon as possible. Please anyone help me, thanks inadvance.
Posted

1 solution

As I think in C# , whichever image is provided by the supplier just read it to a bitmap

like Bitmap bmp1 = new Bitmap("imageName");

then
bmp1.SaveAs("NewName",FileFormat.JPG);

and the image is converted to jpg format.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900