LEADTOOLS Support
General
General Questions
Determining format of image that has EXIF
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, December 19, 2006 6:31:20 AM(UTC)
Groups: Registered
Posts: 2
Hi. I'm having some difficulties trying to determine the format of a file when it has an EXIF embedded.
The problem is that the 'OriginalFormat' property reports 'RasterImageFormat.Exif', and I can't even find out whether it's a TIFF, a BMP, or a JPG. Let alone the encoding.
I'll appreciate your assistance.
Thanks in advance.
#2
Posted
:
Wednesday, December 20, 2006 6:04:37 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
To determine the file format of an image please do as follows
1. Before loading the image you need to call the RasterCodecs.GetInformation Method to get the information about the specified image.
2. Examine the CodecsImageInfo.Format Property to know the format of the image.
You can use the following VB.NET code lines demonstrate the above:
Dim Imageformat As StringDim ImageInfo As CodecsImageInfo = codecs.GetInformation("c:\TEST.jpg", False)Imageformat = ImageInfo.Format.ToString()MsgBox(Imageformat)
LEADTOOLS Support
General
General Questions
Determining format of image that has EXIF
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.