forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: flapane on March 26, 2012, 02:59:20 pm

Title: Suggestion on the exposure time
Post by: flapane on March 26, 2012, 02:59:20 pm
I noticed that exposures longer than 1s are shown in tenths rather than in seconds, as shown here (20/10s instead of 2s) http://www.flapane.com/gallery/displayimage.php?album=search&cat=0&pid=896#top_display_media
Also, another pic in that gallery shows "10/10s", while a simple "1s" imho would be better.
Title: Re: Suggestion on the exposure time
Post by: Αndré on March 26, 2012, 03:47:17 pm
I just tested with the latest version of the EXIF library (you can download it here (http://www.zenphoto.org/trac/export/9634/tags/1.4.2.2/zp-core/exif/exif.php)) and it seems to fix that issue. Unfortunately the formatted data is stored directly in the database, so you'll either have to delete the EXIF data from the database (Coppermine will read it automatically on the next view) or reload it manually for each file.

Please replace Coppermine's include/exif.php file and report any unexpected behavior.
Title: Re: Suggestion on the exposure time
Post by: flapane on March 26, 2012, 04:12:01 pm
Thanks, I tried by manually deleting exif data just for the photo I linked above, and it works. I'll report any strange behaviour.
I can't manage to batch delete EXIF data for all the images in Admin Tools, should I manually delete some sql table?
Title: Re: Suggestion on the exposure time
Post by: Αndré on March 26, 2012, 04:19:57 pm
Don't delete any table, but just clear the exif table (= remove all data). Something like
Quote
DELETE FROM cpg15x_exif
will do the trick.
Title: Re: Suggestion on the exposure time
Post by: flapane on March 26, 2012, 04:29:58 pm
Thanks, it worked.
There's only one thing left: whenever the exposure time is 1sec, it will show 1/1sec.
Title: Re: Suggestion on the exposure time
Post by: Αndré on March 26, 2012, 04:41:45 pm
Updated EXIF library in SVN revision 8349.
Title: Re: Suggestion on the exposure time
Post by: Αndré on March 26, 2012, 04:59:10 pm
Please post a link to a picture with 1s exposure time.
Title: Re: Suggestion on the exposure time
Post by: flapane on March 26, 2012, 05:00:25 pm
http://www.flapane.com/gallery/displayimage.php?album=search&cat=0&pid=897#top_display_media
Title: Re: Suggestion on the exposure time
Post by: Αndré on March 26, 2012, 05:10:56 pm
Open include/exif.php, find
Code: [Select]
if ($data > 1) {and replace with
Code: [Select]
if ($data >= 1) {
Please confirm if it works as expected.
Title: Re: Suggestion on the exposure time
Post by: flapane on March 26, 2012, 05:25:04 pm
I just found
Code: [Select]
if ($data == 1)         $data = gettext('sRGB');without the {
Title: Re: Suggestion on the exposure time
Post by: Αndré on March 26, 2012, 05:57:50 pm
Sorry, my mistake. I just updated the code.
Title: Re: Suggestion on the exposure time
Post by: flapane on March 26, 2012, 06:01:10 pm
It seems to work :)
Title: Re: Suggestion on the exposure time
Post by: Αndré on March 27, 2012, 11:02:25 am
Issue reported to Zenphoto (ticket #2143 (http://www.zenphoto.org/trac/ticket/2143)). They maintain the EXIF library.
Title: Re: Suggestion on the exposure time
Post by: Αndré on March 27, 2012, 01:48:41 pm
Committed fix in SVN revision 8351.
Title: Re: Suggestion on the exposure time
Post by: flapane on March 27, 2012, 02:51:41 pm
Glad to hear it
Title: Re: Suggestion on the exposure time
Post by: Αndré on March 29, 2012, 04:30:08 pm
The fix is now also included in the source library: http://www.zenphoto.org/trac/changeset/9640