Getting image compression/codec information?
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi. I'm looking on how to get the information from an image. The information i need is its codec or compression. The reason why i need this is because, i have a large quantity of .TIF files. But some were not converted right and are color TIFs (IrFan View says : "Old JPEG (in TIFF)"). I need to get these files and convert them to the real .JPG. So, i want to get the codec information from a file and compare it to a string. I'd use the "for" sentence to go through the whole list of files. Summary (a scratch code):
for(int i = 0; i<files.count;i++)>
get codec from files[i]
if codec == old jpeg
then move the file to a folderAny idea on how to get this information? Thanks in advance!
Regards, Matjaž