Click here to Skip to main content
11,925,101 members (53,540 online)
Click here to Skip to main content
Add your own
alternative version


84 bookmarked

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.


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.


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


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.

You may also be interested in...

Comments and Discussions

BugThere's a mistake in the Byte() to Int32 conversion... I've posted the fix here: Pin
Sarah Cartwright18-May-14 23:25
memberSarah Cartwright18-May-14 23:25 
SuggestionHandling Shutter speed in a better way 0.5 to 1/2 and 0.16667 to 1/6th Pin
Member 799555427-Jul-13 9:05
memberMember 799555427-Jul-13 9:05 
Questionkeywords Pin
sharkyigor7-Jul-13 9:21
membersharkyigor7-Jul-13 9:21 
SuggestionCorrecting Exposure Time to display 1/200 instead of 0.005s Pin
Tino Fourie17-Jun-13 15:37
memberTino Fourie17-Jun-13 15:37 
QuestionExifISOSpeed = &H8827 ' decimal 34855 ISO Speed 100, 200, 400, etc. Pin
beppe marino22-May-13 8:25
memberbeppe marino22-May-13 8:25 
QuestionAltitudeRef Pin
Archdeacon9-Sep-12 16:09
memberArchdeacon9-Sep-12 16:09 
Questionmistake Pin
huelsmann2-Jul-12 21:42
memberhuelsmann2-Jul-12 21:42 
QuestionBasic Documentation Pin
CeremBeyazit22-Jun-12 8:02
memberCeremBeyazit22-Jun-12 8:02 
QuestionCorrect display int16 ("Exposure time" < 1/255 s) and Int32 value Pin
andbag1-Apr-12 23:20
memberandbag1-Apr-12 23:20 
GeneralMy vote of 5 Pin
Mohammad_02112-Nov-11 23:24
memberMohammad_02112-Nov-11 23:24 
QuestionEXIF GPS Latitude and others Pin
bridgfod13-Aug-11 18:20
memberbridgfod13-Aug-11 18:20 
AnswerRe: EXIF GPS Latitude and others Pin
bridgfod15-Aug-11 3:21
memberbridgfod15-Aug-11 3:21 
GeneralAltitude and ImgDir Pin
JustinMW12-Nov-10 11:54
memberJustinMW12-Nov-10 11:54 
QuestionExifWorks Subject Distance Pin
Archdeacon4-Sep-10 23:56
memberArchdeacon4-Sep-10 23:56 
AnswerRe: ExifWorks Subject Distance Pin
Member 181547028-Sep-11 4:12
memberMember 181547028-Sep-11 4:12 
GeneralMy vote of 4 Pin
Archit937328444824-Jul-10 8:44
memberArchit937328444824-Jul-10 8:44 
GeneralSaving edits Pin
calipo19-Aug-09 7:09
membercalipo19-Aug-09 7:09 
GeneralRe: Saving edits Pin
Drew Stegon19-Aug-09 12:16
memberDrew Stegon19-Aug-09 12:16 
GeneralRe: Saving edits Pin
x38class23-Sep-09 21:26
memberx38class23-Sep-09 21:26 
GeneralRe: Saving edits Pin
Drew Stegon24-Sep-09 7:13
memberDrew Stegon24-Sep-09 7:13 
GeneralRe: Saving edits Pin
emompong17-Feb-10 17:33
memberemompong17-Feb-10 17:33 
GeneralRe: Saving edits Pin
Zisha1-Aug-12 12:20
memberZisha1-Aug-12 12:20 
GeneralRe: Saving edits Pin
chuasw2327-Feb-12 16:30
memberchuasw2327-Feb-12 16:30 
QuestionHow to set / write "rational-data" like latitude / longitude ? [modified] Pin
scooterdd14-Aug-09 1:35
memberscooterdd14-Aug-09 1:35 
AnswerRe: How to set / write "rational-data" like latitude / longitude ? Pin
Drew Stegon19-Aug-09 18:28
memberDrew Stegon19-Aug-09 18:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web03 | 2.8.151126.1 | Last Updated 1 Feb 2006
Article Copyright 2003 by Michal Altair Valášek
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid