tanasi
tanasi

Reputation: 1804

Convert image from one format to another

I need to convert image from one format, some big format, to some lite format like jpg or any other.

I am using winforms, C#. What class is best for this job, and any suggestion what is a good way to do this?

I find Imagemagic. I guess it's the right way to do this.

Upvotes: 0

Views: 1230

Answers (1)

stuartd
stuartd

Reputation: 73243

What format are you converting from? If it's bitmaps and you don't need fine-grained control over the image, just use the built in conversions:

using (Image img = Image.FromFile(@"c:\pic.bmp")) {
     img.Save(@"c:\pic.jpg" ,ImageFormat.Jpeg); 
}

Upvotes: 3

Related Questions