Get Image Compression
Get Image Compression
I am loading a tiff from my hard drive into the Imaging object. I need to find out what compression was used to save the image. Is there a property for this infomation?
Re: Get Image Compression
A solution consist to retrieve the Compression tag of the native image:
Best regards,
Loïc
Code: Select all
Imaging1.DisableGdimgplugCodecs (True)
Imaging1.CreateImageFromFile ("image.tif")
For i = 1 To Imaging1.ExifTagCount
If Imaging1.ExifTagGetID(i) = Tags.TagCompression Then
Select Case Trim(Imaging1.ExifTagGetValueString(i))
Case "1"
MsgBox "No compression"
Case "3"
MsgBox "CCITT3"
Case "4"
MsgBox "CCITT4"
Case "5"
MsgBox "LZW"
Case "32773"
MsgBox "RLE"
Case Else
MsgBox "Unknown " & Imaging1.ExifTagGetValueString(i)
End Select
End If
Next i
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests