Connecting Tech Pros Worldwide Forums | Help | Site Map

C++ image Format conversion

Member
 
Join Date: Mar 2008
Posts: 109
#1: Aug 12 '08
hello All,
I have a new problem. I have a .TIFF file that is of 1bit per pixel and compressed with CCITT T.6. I need to open this file from the disk convert it to something more standard (.JPG or .BMP) and then save the file back to the disk for future processing. I thought it was going to be eazy, but i cant seem to find any resources to do it.

any ideas?
thanks

The theory im working on at the moment, is to us C++ to open the file in MSPAINT, and then save the file. If got it open. Just cant get it to save correctly. I dont have the code on this computer. I will try to get it to you.

thanks again.

gpraghuram's Avatar
Expert
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,258
#2: Aug 13 '08

re: C++ image Format conversion


Why you want to open MSPAINT from C++?
Instead you can do the same operation separately.
Can you give more info on why u are doing it this way?

Raghu
Member
 
Join Date: Mar 2008
Posts: 109
#3: Aug 13 '08

re: C++ image Format conversion


well it needs to be automatic, i have a program that will read through some pdf files. And if the file locates an image, it will cut the image out, and save it to disk. Unfortunatly i have no choice but to save it as .TIFF
later on, I then try to re-open the image using different imaging software. However this software does not support .TIFF format. So i need to somehow automate the conversion from .TIFF to .BMP, so that i can use the .BMP in my application.

i hope i have made sence.
Reply