Click here to Skip to main content
Click here to Skip to main content

The ExifWorks class

, 1 Feb 2006
Rate this:
Please Sign up or sign in to vote.
The ExifWorks is a class written in 100% pure managed VB.NET, which allows comfortable reading of embedded EXIF metadata.

What is EXIF

EXIF stands for Exchangeable Image File Format. This format is used for storing various metadata in images, and is widely used mainly in digital still cameras. More information about EXIF can be found here, or in the document Description of the EXIF file format by TsuruZoh Tachibanaya.

When I was trying to find any sources regarding comfort access from .NET environment to these data, I was not successful. So I wrote this class and gave it freely available as open source.

What is ExifWorks

ExifWorks is a class written in 100% pure managed VB.NET, which allows comfort reading and writing of embedded EXIF metadata. It has the following features:

  • Provides the TagNames Enum, which contains user-friendly constant names for all known EXIF parameter IDs.
  • Provides generic functions for reading EXIF parameters: GetInt16, GetInt32, GetString, and GetRational, as well as GetPropertyInt16, GetPropertyInt32, GetPropertyString, and GetPropertyRational. They may be used to simplify the access to all EXIF data from your custom application.
  • Provides a user-friendly abstraction layer for most of the common parameters, allowing easy work with EXIF data and their presentation to end users. The abstraction layer has been developed for presentation, so even if a value is not present, some data (in valid syntax) are provided. Either default values or values computed from other sources (i.e. shutter speed vs. exposure time) are provided. If you need exact data, use the generic functions instead.

The provided test application exread.exe shows working with the ExifWorks class.

Licensing

ExifReader/ExifWorks .NET library

Copyright (c) Michal A. Valášek - Altair Communícations, 2003-2006

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

The text of the GNU Lesser General Public License (LGPL) is available online here.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Michal Altair Valášek
Software Developer Altairis
Czech Republic Czech Republic

Software architect and developer in Altairis, dev shop in Czech republic. Microsoft Most Valuable Professional (MVP) since 2004.

See my open source project at Codeplex.


Comments and Discussions

 
BugThere's a mistake in the Byte() to Int32 conversion... I've posted the fix here: PinmemberSarah Cartwright18-May-14 23:25 
SuggestionHandling Shutter speed in a better way 0.5 to 1/2 and 0.16667 to 1/6th PinmemberMember 799555427-Jul-13 9:05 
Questionkeywords Pinmembersharkyigor7-Jul-13 9:21 
SuggestionCorrecting Exposure Time to display 1/200 instead of 0.005s [modified] PinmemberTino Fourie17-Jun-13 15:37 
QuestionExifISOSpeed = &H8827 ' decimal 34855 ISO Speed 100, 200, 400, etc. Pinmemberbeppe marino22-May-13 8:25 
QuestionAltitudeRef [modified] PinmemberArchdeacon9-Sep-12 16:09 
Questionmistake Pinmemberhuelsmann2-Jul-12 21:42 
QuestionBasic Documentation PinmemberCeremBeyazit22-Jun-12 8:02 
QuestionCorrect display int16 ("Exposure time" < 1/255 s) and Int32 value Pinmemberandbag1-Apr-12 23:20 
GeneralMy vote of 5 PinmemberMohammad_02112-Nov-11 23:24 
QuestionEXIF GPS Latitude and others Pinmemberbridgfod13-Aug-11 18:20 
AnswerRe: EXIF GPS Latitude and others Pinmemberbridgfod15-Aug-11 3:21 
GeneralAltitude and ImgDir PinmemberJustinMW12-Nov-10 11:54 
QuestionExifWorks Subject Distance PinmemberArchdeacon4-Sep-10 23:56 
AnswerRe: ExifWorks Subject Distance PinmemberMember 181547028-Sep-11 4:12 
GeneralMy vote of 4 PinmemberArchit937328444824-Jul-10 8:44 
GeneralSaving edits Pinmembercalipo19-Aug-09 7:09 
GeneralRe: Saving edits PinmemberDrew Stegon19-Aug-09 12:16 
GeneralRe: Saving edits Pinmemberx38class23-Sep-09 21:26 
GeneralRe: Saving edits PinmemberDrew Stegon24-Sep-09 7:13 
GeneralRe: Saving edits Pinmemberemompong17-Feb-10 17:33 
GeneralRe: Saving edits PinmemberZisha1-Aug-12 12:20 
GeneralRe: Saving edits Pinmemberchuasw2327-Feb-12 16:30 
QuestionHow to set / write "rational-data" like latitude / longitude ? [modified] Pinmemberscooterdd14-Aug-09 1:35 
AnswerRe: How to set / write "rational-data" like latitude / longitude ? PinmemberDrew Stegon19-Aug-09 18:28 
QuestionAny way to write tags Pinmembergerardkelly21-Jul-09 8:03 
GeneralCannot save ISO info Pinmemberwaex9925-Jun-09 22:59 
GeneralEXIF Thumbnail PinmemberScott Rippey21-Jun-09 10:50 
GeneralRe: EXIF Thumbnail PinmemberDrew Stegon17-Aug-09 6:57 
AnswerRe: EXIF Thumbnail PinmemberScott Rippey17-Aug-09 9:29 
GeneralRe: EXIF Thumbnail PinmemberDrew Stegon18-Aug-09 14:18 
GeneralRe: EXIF Thumbnail PinmemberScott Rippey18-Aug-09 21:05 
GeneralRe: EXIF Thumbnail PinmemberDrew Stegon19-Aug-09 12:04 
GeneralRe: EXIF Thumbnail PinmemberDrew Stegon18-Aug-09 14:37 
Generalc# version with GPS feature (latitude, longitude) PinmemberMember 425991919-Jun-09 23:41 
GeneralOverwrite the existing file when saving. PinmemberMember 417568311-Jun-09 11:28 
GeneralLatitude/Longitude PinmemberMelanie Hugglestone20-Mar-09 12:51 
GeneralRe: Latitude/Longitude PinmemberCoffer7-Jun-09 7:49 
AnswerRe: Latitude/Longitude PinmemberMember 425991919-Jun-09 23:43 
GeneralRe: Latitude/Longitude PinmemberCoffer20-Jun-09 10:26 
GeneralRe: Latitude/Longitude PinmemberMark Gray25-Nov-09 12:51 
GeneralRe: Latitude/Longitude PinmemberMichaelCameron196129-Sep-11 0:51 
GeneralSome wrong values PinmemberOnur Guzel4-Jan-09 1:28 
GeneralRe: Some wrong values PinmemberOnur Guzel23-May-10 1:20 
QuestionHow do you change EXIF properties? Pinmemberabhijitshrikhande8-Sep-08 11:53 
GeneralWritten Tags - Visibility ijn Other Products PinmemberPhilip Lippard7-Jul-08 12:35 
GeneralIDisposable Pinmemberyvdh26-May-08 5:31 
QuestionFile Lock during Opening File Pinmembermarcolino730-Aug-07 11:28 
AnswerRe: File Lock during Opening File Pinmembermarcolino731-Aug-07 1:57 
GeneralPerformance improvement (x20) Pinmemberkounch17-Jun-07 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 1 Feb 2006
Article Copyright 2003 by Michal Altair Valášek
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid