Skip to content

vast-community-hub/exif-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VAST Platform EXIF reader

VAST Platform EXIF reader
Report a defect | Request feature

A VAST Platform project to read and parse EXIF metadata from images, like JPGs.

License

  • The code is licensed under MIT.
  • The documentation is licensed under CC BY-SA 4.0.

Installation

  1. Install VA Smalltalk 10.0.0 or newer.
  2. Install Tonel support in your development image following this guide.
  3. Clone this repository.
  4. The easiest and recommended approach is to install it via a script:
| loader path |
path := (CfsPath named: '<insert path to root exif-reader local repo here>').
loader := TonelLoader readFromPath: path.
loader
	beUnattended; "do not prompt and use all defaults"
	useGitVersion.
loader loadAllMapsWithRequiredMaps.

Or you can load the Configuration Map SoS from the context menu of the Configuration Maps Browser: "Import" -> "Load Configuration Maps from Tonel repository..." -> select path to root exif-reader local repo. This will open a dialog and will use convenient defaults for the load. Refer to its documentation for more details.

Supplied files:

  • exif-useage.pdf - PDF manual contains instructions for installing and running the code
  • tags.csv - must be in the root directory of the program and contains the list of all valid exif tags and their data
  • testimage.jpg - a valid JPEG file used from within the comments of the class methods used.

Running the examples

  • Ensure that the two files: tags.csv and testimage.jpg are in the root directory
  • Go to the Application SoSExifReaderApp and select SoSExifReader in the Parts list and open it.
  • Go to the Class method list and open parseAFileCalled: aFileName
  • Highlight SoSExifReader parseAFileCalled: 'testimage.jpg' and inspect (Control-Q). You should have a list of the tags and their contents in the Transcript and an inspect on a dictionary containing each page in the image.

Documentation

The documentation is in the exif-usage.pdf.