Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: EXIF failing to be read  (Read 3541 times)

0 Members and 1 Guest are viewing this topic.

kaptainkory

  • Tester
  • Coppermine regular visitor
  • *
  • Offline Offline
  • Posts: 51
EXIF failing to be read
« on: August 07, 2005, 09:22:51 pm »

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):

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

REPLACE WITH:

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

Thanks.
« Last Edit: August 23, 2005, 06:52:06 am by Aditya Mooley »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: EXIF failing to be read
« Reply #1 on: August 08, 2005, 02:20:36 am »

What does that code do to older camera information?  Will it break the EXIF reading for other cameras?
Logged
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

  • Tester
  • Coppermine regular visitor
  • *
  • Offline Offline
  • Posts: 51
Re: EXIF failing to be read
« Reply #2 on: August 08, 2005, 09:23:08 am »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: EXIF failing to be read
« Reply #3 on: August 15, 2005, 07:29:22 am »

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

Aditya Mooley

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 781
    • My Sweet Home
Re: EXIF failing to be read
« Reply #4 on: August 19, 2005, 02:11:30 pm »

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

DeadKenny

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 40
Re: EXIF failing to be read
« Reply #5 on: October 02, 2005, 09:03:29 pm »

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 :(.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.