can DotNet read and/or write exif

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

I see that ImageFormat includes exif.

But I can't find out if

I've System.Drawing.Image.FromStream

or something like it

can read and/or write that format.



I'm familiar with Q316563 but it does not mention exif



Thanks in advance
 
The MSDN site has information that may help you here:
http://msdn2.microsoft.com/en-us/library/xddt0dz7.aspx

Since gdiplus is old (i.e., the only version ever released was version 1.0),
it does not support all of the EXIF image tags.

A more robust solution is to use the COM Interfaces IStorage,
IPropertySetStorage, etc.

These interfaces will allow you to read and write all EXIF image tags, as
well as, all metadata for video, music, compound documents, etc.

See the MSDN online site for details. There ares no .Net classes or methods
implemented. You must implement these interfaces yourself.
 
Try what?
I wanted to try to read such a file but searched my entire disk and couldn't
find one.
I'll look at the sites now.

Thanks
 
I checked the sites but they had the same info as my VS help. As I said in
my post, I knew it was an image format property. All the other properties
relate to file extensions.

What I don't know is if exif also relates to an extension.


Does it?

Thanks
 
Here's the first link from googling "exif files".

http://park2.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html

which leads to this:

http://www.leadtools.com/SDK/Raster/Formats/Raster-Format-EXIF.htm

which says their tool "reads and writes the following Exit format: TIFF and
JPG."

Here's the next link which talks about a Jpeg Header and Thumbnail
Manipulator Program, and lists things they can extract from an Exif jpeg
file.

http://www.sentex.net/~mwandel/jhead/

Google is your friend.

So try opening a jpeg and check the ImageFormat.exif property and see if
it's true, and if so, the exif metadata is present, that would be my guess.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
 
at those sties I see things like: Exif Formats (TIFF and JPG) and so I keep
asking the same question:
Is exif a file extension or something that relates to files with other
extensions.

Is it used as a file extension yes or no?


As far as using Google, I get so many hits I must have looked at a hundred
sites but never there nor here found out the answer to my question.

I did find some great info about extracting exif data that I had no idea
some files have.


thanks for trying to help
 
Frank,

I'm hoping that this information is what you need, but it appears to be so
by the questions you have asked on this subject.

Exif is shorthand for Exchangeable Image Format. It is not an graphic type,
such as .jpg or .tif. The Exif is a format whereby header information is
stored in the graphic for later access during program runtime. Therefore, in
answer to your question, it is NOT a file extension, but a format that helps
you RELATE to other file extensions.

Bruce
 
Bruce W. Darby said:
Frank,

I'm hoping that this information is what you need, but it appears to be so
by the questions you have asked on this subject.

Exif is shorthand for Exchangeable Image Format. It is not an graphic
type, such as .jpg or .tif. The Exif is a format whereby header
information is stored in the graphic for later access during program
runtime. Therefore, in answer to your question, it is NOT a file
extension, but a format that helps you RELATE to other file extensions.

Bruce

Thanks, I really appreciate the straight answer

You most likely know Imaging.ImageFormat contains Exif as well as Jpeg, Gif,
Png, and Tiff. All except Exif (I now know thanks to you) relate to a file
extension. So one wonders how come all the image formats gets a file
extension except Exif. What make Exif so different?

I kept looking at the definitions and finally noticed that the others are
"image formats" while Exif is an "image file format"
That helped a little.

But your answer was really what I needed.



Thanks a lot
 
Most welcome, Frank.

Frank said:
Thanks, I really appreciate the straight answer

You most likely know Imaging.ImageFormat contains Exif as well as Jpeg,
Gif, Png, and Tiff. All except Exif (I now know thanks to you) relate to a
file extension. So one wonders how come all the image formats gets a file
extension except Exif. What make Exif so different?

I kept looking at the definitions and finally noticed that the others are
"image formats" while Exif is an "image file format"
That helped a little.

But your answer was really what I needed.



Thanks a lot
 
So try opening a jpeg and check the ImageFormat.exif property and see if
it's true, and if so, the exif metadata is present, that would be my
guess.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.

I never thought of checking the property after I open a file.
Dumb maybe, but I only used it with Image.Save

Thanks again
 
Back
Top