How to open tif pictures in picture box>
-
Hi, I want to open the tif files in web pages. but picture box will not support tif files. How convert tif files into gif or jpeg files programatically when i retrieve the data from database (I am storing only the path of picture files).
-
Hi, I want to open the tif files in web pages. but picture box will not support tif files. How convert tif files into gif or jpeg files programatically when i retrieve the data from database (I am storing only the path of picture files).
Really, you need to run a batch converter to convert them into the right format at the point of storage, not at the point of retrieval. GDI+ will load a tif, and store it as a jpg.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Really, you need to run a batch converter to convert them into the right format at the point of storage, not at the point of retrieval. GDI+ will load a tif, and store it as a jpg.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Thank you. I too think so. But the images have been stored already. Is there is no way to solve this problem?
-
Thank you. I too think so. But the images have been stored already. Is there is no way to solve this problem?
Not really - you can write code to generate a new jpg out of the tif image, but that seems like a pain to me. Why not just run a batch converter, then do an update to your db to replace .tif with .jpg ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Thank you. I too think so. But the images have been stored already. Is there is no way to solve this problem?
Check this out: http://www.codeproject.com/KB/GDI-plus/tiffmanager.aspx[^]
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
Not really - you can write code to generate a new jpg out of the tif image, but that seems like a pain to me. Why not just run a batch converter, then do an update to your db to replace .tif with .jpg ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
In that case I have to update the database. Thank you Graus.
Chaitra N