forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Streamer on August 11, 2010, 09:53:44 pm

Title: Read EXIF does not work?
Post by: Streamer on August 11, 2010, 09:53:44 pm
Hi,

I have problem with reading EXIF data. This worked fine with 1.4.x but does not work after upgraded to 1.5.x. I have setting "Read EXIF data in JPEG files" (read_exif_data = 1, checked from database) on and selected some exif data to show from exif manager. Here's link to my gallery http://www.perhokalastajat.net/kuvagalleria/index.php
Title: Re: Read EXIF does not work?
Post by: Streamer on August 14, 2010, 07:49:45 am
Any help for this? Is it working for you or is it just our gallery that has some problem?
Title: Re: Read EXIF does not work?
Post by: Streamer on August 16, 2010, 08:51:03 pm
Anyone can confirm if the reading EXIF works or not?
Title: Re: Read EXIF does not work?
Post by: Nibbler on August 19, 2010, 10:18:09 pm
Please post a link to an image in your gallery that contains EXIF data.
Title: Re: Read EXIF does not work?
Post by: Streamer on August 22, 2010, 10:57:45 am
Seems like the 1.5 is working different with image saving. 1.4.x did not compress jpg's that was not over maximum size, 1.5 does it always without checking image size? Of course then the exif date is removed from picture that is on the server. However I think the exif date should be read before resize / compress, right?

Here's picture uploaded with 1.4.x http://www.perhokalastajat.net/kuvagalleria/displayimage.php?pid=22088
And same picture with 1.5.8: http://www.perhokalastajat.net/kuvagalleria/displayimage.php?pid=22601

Settings
GD version 2.x (on the server it is bundled (2.0.28 compatible))
Use dimension: Max Aspect
Max width or height of an intermediate picture: 800
Max width or height for uploaded pictures (pixels): 2048
Read EXIF data in JPEG files: ON
Auto resize images that are larger than max width or height: Yes: Everyone


Title: Re: Read EXIF does not work?
Post by: Nibbler on August 22, 2010, 03:21:58 pm
No, the exif data is extracted on demand the first time the picture is viewed and then cached in the database. Any kind of auto resizing or watermarking will interfere with this.
Title: Re: Read EXIF does not work?
Post by: Streamer on August 22, 2010, 07:58:55 pm
From documentation (http://www.perhokalastajat.net/kuvagalleria/docs/en/exif.htm)

"Therefor, if you resize your pics (this includes creation of intermediate sized images and thumbnails), the exif data embedded into the original will be lost - it will not remain inside the resized image. It will remain though within the exif database table and will be displayed inside the file information section."

And why my pictures are "resized and compressed" if they are not over 800 pixels what's on my settings? It's not now possible to save better quality jpg:s to my gallery, it was possible on 1.4.
Title: Re: Read EXIF does not work?
Post by: Streamer on August 27, 2010, 07:21:30 pm
So, any comments after my last post? I think there's some strange on this, is there any users that has read exif working?
Title: Re: Read EXIF does not work?
Post by: phill104 on August 27, 2010, 09:27:53 pm
Yep, works perfectly for me. Your last comment also completely mistifies me.
Title: Re: Read EXIF does not work?
Post by: Streamer on August 30, 2010, 08:35:45 am
Ok. So maybe it's some kind of problem with server settings, php version, gd version or something like that.. but anyhow something changed with upgrade to 1.5.. :(
Title: Re: Read EXIF does not work?
Post by: Αndré on September 02, 2010, 12:42:16 pm
1.4.x did not compress jpg's that was not over maximum size, 1.5 does it always without checking image size?
I think I recognized that behavior, too. Please post all relevant resizing settings (= all $CONFIG values that are used in the function add_picture in include/picmgmt.inc.php).
Title: Re: Read EXIF does not work?
Post by: Streamer on September 02, 2010, 07:43:46 pm
I think I recognized that behavior, too. Please post all relevant resizing settings (= all $CONFIG values that are used in the function add_picture in include/picmgmt.inc.php).

Ok, here's my config values from function add_picture:

$CONFIG['fullpath'] = albums/
$CONFIG['normal_pfx'] = normal_
$CONFIG['thumb_pfx'] = thumb_
$CONFIG['orig_pfx'] = orig_
$CONFIG['allowed_file_extensions'] = GIF/JPG/JPEG/
$CONFIG['max_upl_width_height'] = 1000
$CONFIG['auto_resize'] = 1
$CONFIG['thumb_method'] = gd2
$CONFIG['thumb_use'] = any
$CONFIG['enable_watermark'] = 0
$CONFIG['which_files_to_watermark'] = both
$CONFIG['read_iptc_data'] = 0
$CONFIG['keyword_separator'] = %20
$CONFIG['thumb_width'] = 100
$CONFIG['picture_use'] = any
$CONFIG['picture_width'] = 1000
$CONFIG['make_intermediate'] = 0
$CONFIG['enable_watermark'] = 0
$CONFIG['which_files_to_watermark'] = both
$CONFIG['auto_resize'] = 1
$CONFIG['max_upl_width_height'] = 1000
$CONFIG['allow_guests_enter_file_details'] = 0

Note, I have changed max size from 800 -> 1000 after last posts.
Title: Re: Read EXIF does not work?
Post by: Αndré on September 10, 2010, 04:19:41 pm
Should work as expected with r7889 (http://coppermine.svn.sourceforge.net/viewvc/coppermine?view=rev&revision=7889). Please confirm.
Title: Re: Read EXIF does not work?
Post by: Streamer on September 10, 2010, 06:46:43 pm
Works like a dream!!

Thank's a lot, I owe you a beer  ;D