Suggestion on the exposure time Suggestion on the exposure time
 

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

Suggestion on the exposure time

Started by flapane, March 26, 2012, 02:59:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

flapane

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.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

I just tested with the latest version of the EXIF library (you can download it here) 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.

flapane

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?
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

Don't delete any table, but just clear the exif table (= remove all data). Something like
QuoteDELETE FROM cpg15x_exif
will do the trick.

flapane

Thanks, it worked.
There's only one thing left: whenever the exposure time is 1sec, it will show 1/1sec.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

Updated EXIF library in SVN revision 8349.

Αndré

Please post a link to a picture with 1s exposure time.

flapane

Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

#8
Open include/exif.php, find
if ($data > 1) {
and replace with
if ($data >= 1) {

Please confirm if it works as expected.

flapane

I just found
if ($data == 1)         $data = gettext('sRGB');
without the {
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

Sorry, my mistake. I just updated the code.

flapane

Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

Issue reported to Zenphoto (ticket #2143). They maintain the EXIF library.

Αndré

Committed fix in SVN revision 8351.

flapane

Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré