EXIF failing to be read EXIF failing to be read
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

EXIF failing to be read

Started by kaptainkory, August 07, 2005, 09:22:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kaptainkory

I have a newer Canon digital camera.  The EXIF data is not being read properly by CPG.  I tried to figure out the minimum change necessary to correct the problem:

1) Download and use the latest EXIF library (version 1.5) from http://www.offsky.com/software/exif/index.php.  The current version does not read the files correctly.

2) In exif_php_inc.php, FIND (line 68):

        if (is_array($exifRawData['IFD0'])) {
          $exif = array_merge ($exif,$exifRawData['IFD0']);
        }


REPLACE WITH:

if (is_array($exifRawData['EXIF'])) {
          $exif = array_merge ($exif,$exifRawData['EXIF']);
        }
        if (is_array($exifRawData['IFD0'])) {
          $exif = array_merge ($exif,$exifRawData['IFD0']);
        }


Thanks.

kegobeer

What does that code do to older camera information?  Will it break the EXIF reading for other cameras?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kaptainkory

I have pictures from about 4 different cameras (Olympus, Nikon, and Canon) that I've tested with this code.  They all seem to work fine.  All the code does is ADDS to an array_merged.  Pretty safe, I think.

Joachim Müller

@Tarique: since you're the exif expert, could you take a look into this?

Aditya Mooley

Updated the EXIF reader to 1.5 and committed to CVS.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

DeadKenny

Will this solve the problem with Nikon ISO information being missing (especially for files from a D70)?

I know what the issue is. Nikon stick their ISO information in the maker notes and not in any standard location, so most EXIF tools miss it. At the moment the only solution is to manually hack Nikon files to stick the ISO in the EXIF :(.