Monday, January 6, 2014

Read jpeg information with exif

 exif is a small command-line utility to show and change EXIF information in JPEG files.

       Most  digital  cameras  produce  EXIF  files,  which are JPEG files with extra tags that contain information about the
       image. The exif command-line utility allows you to read EXIF information from and  write  EXIF  information  to  those
       files.  exif internally uses the libexif library.

       Each  input  file  given  on  the  command  line is acted upon in turn, using all the options given. Execution will be
       aborted immediately if one file is not readable or does not contain EXIF tags.

       As EXIF tags are read, any unknown ones are discarded and known ones are automatically converted into the correct for‐
       mat, if they aren't already.  Corrupted MakerNote tags are also removed, but no format changes are made.


1- install exif
# apt-get install exif

2- get information

 # exif IMG_20140106_093346.jpg

EXIF tags in 'IMG_20140106_093346.jpg' ('Intel' byte order):
--------------------+----------------------------------------------------------
Tag                 |Value
--------------------+----------------------------------------------------------
Image Description   |                             
Manufacturer        |                             
Model               |                             
Orientation         |Top-left
X-Resolution        |72
Y-Resolution        |72
Resolution Unit     |Inch
Software            |MediaTek Camera Application
Date and Time       |2014:01:06 09:33:46
YCbCr Positioning   |Co-sited
Compression         |JPEG compression
Orientation         |Top-left
X-Resolution        |72
Y-Resolution        |72
Resolution Unit     |Inch
YCbCr Positioning   |Co-sited
Exposure Time       |1/256 sec.
F-Number            |f/2.8
Exposure Program    |Manual
ISO Speed Ratings   |112
Exif Version        |Exif Version 2.2
Date and Time (Origi|2014:01:06 09:33:46
Date and Time (Digit|2014:01:06 09:33:46
Components Configura|Y Cb Cr -
Exposure Bias       |0.00 EV
Metering Mode       |Average
Light Source        |Other
Flash               |Flash did not fire
Focal Length        |35.0 mm
FlashPixVersion     |FlashPix Version 1.0
Color Space         |sRGB
Pixel X Dimension   |3264
Pixel Y Dimension   |2448
Exposure Mode       |Auto exposure
White Balance       |Auto white balance
Digital Zoom Ratio  |1.00
Scene Capture Type  |Standard
Interoperability Ind|R98
Interoperability Ver|0100
--------------------+----------------------------------------------------------
EXIF data contains a thumbnail (3776 bytes)

No comments:

Post a Comment