Read EXIF does not work? Read EXIF does not work?
 

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

Read EXIF does not work?

Started by Streamer, August 11, 2010, 09:53:44 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Streamer

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

Streamer

Any help for this? Is it working for you or is it just our gallery that has some problem?

Streamer

Anyone can confirm if the reading EXIF works or not?

Nibbler

Please post a link to an image in your gallery that contains EXIF data.

Streamer

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



Nibbler

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.

Streamer

From documentation

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

Streamer

So, any comments after my last post? I think there's some strange on this, is there any users that has read exif working?

phill104

Yep, works perfectly for me. Your last comment also completely mistifies me.
It is a mistake to think you can solve any major problems just with potatoes.

Streamer

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.. :(

Αndré

Quote from: Streamer on August 22, 2010, 10:57:45 AM
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).

Streamer

Quote from: Αndré on September 02, 2010, 12:42:16 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.

Αndré

Should work as expected with r7889. Please confirm.

Streamer

Works like a dream!!

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