converting file formats

I need to convert a tiff file into a jpg file. How do I do that?
Who is Participating?
mokuleConnect With a Mentor Commented:
You can download it from
You mean to write a program or use a tool.
If a tool - IrfanView can be good
not enough points for a source code
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

eric_duncanConnect With a Mentor Commented:
It's really very simple:

using System;
using System.Drawing;

// this method will convert any image, tiff or not, to a jpeg
public void ConvertImageToJpeg(string strFileName, string strOutFileName){
        // the following two lines of code were lifted
        // from the codeproject link referenced below.
        Image imgInFile=Image.FromFile(strFileName);

Check out the following link:

Let me know if this helps!


PS. I don't want to start a flame war, but the fact that you have come here looking for help is reason enough for me to give you source code. Points are cool, but they're absolutely secondary IMHO.
Sorry, forgot to mention that the above code is written in C# using .Net framework 1.1.
Melih SARICAConnect With a Mentor OwnerCommented:
Easiest way ...

use GDI+ Functions..
very easy and Fast ..

which language r u using ?
Melih SARICAOwnerCommented:

this link ll help u about GDI+

hope it helps..

thx 4 the points
Yes, I agree that GDI+ is absolutely the way to go - the code sample I provided in c# above is using the System.Drawing namespace in .Net, which is an encapsulation of the GDI+ functionality. Actually, I think that non_zero's link above goes directly to the MSDN documentation for this namespace, so it looks like we're on the same page.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.