PDA

View Full Version : Exif data and Thumbnail issues


Anonymous
10-07-2004, 06:36 PM
Where would the EXIF data be displayed on the default templates? Also my thumbnails come out very odd looking. They are the proper size, but they look slightly garbled.


- J

pixelpunk
10-07-2004, 08:10 PM
In the pixelpost-dark it's pretty much evident. Next to the Camera:, Exposure: etc. They are not used in the other template.
If there is nothing there - the data could not be read from the file.

Bara in mind, for example Adobe Photoshop destroys this data so there would be nothing left to get.

How do you mean odd looking?
GD-library does the cropping and I'm not quite sure if I can adjust quality and such things in any way at all.

// punk pixel

Anonymous
10-07-2004, 08:46 PM
In the pixelpost-dark it's pretty much evident. Next to the Camera:, Exposure: etc. They are not used in the other template.
If there is nothing there - the data could not be read from the file.

Bara in mind, for example Adobe Photoshop destroys this data so there would be nothing left to get.

How do you mean odd looking?
GD-library does the cropping and I'm not quite sure if I can adjust quality and such things in any way at all.

// punk pixel

Ah that's right about Photoshop killing the exif data. Forgot about that.


As for the resizing, it creates fuzzy lines. Not the usual blurriness you get from resizing. I had to shrink it in photoshop, but I'll post another photo tonight and leave it on my site for you to look at (http://www.jarodlam.net)


- J

pixelpunk
10-07-2004, 09:19 PM
Just an odd thing to test: in the admin panel, choose another dimension for the thumbnails and re-create them to see if they work better a bit larger, or smaller perhaps.

just a whacky idea I myself would try, holistic approach

// punK

Anonymous
10-07-2004, 11:16 PM
Ok I reuploaded. You can see how the thumbnail looks. Looks all funky.

pixelpunk
10-08-2004, 12:05 AM
Ah I see.

Well, i googled some and it seems GD handles stuff it differently depending on version. So, let's blame GD.

It would be of great help to me if you could tell me what version of GD that is installed on your webhost. The info is available under the general info section in the admin panel of pixelpost. It will make it easier for me to understand what's going on and fix it.

Thanks

// pixelthread

Anonymous
10-08-2004, 02:31 AM
GD-lib bundled (2.0.28 compatible)

I also put the reuploaded the image with th EXIF data retained and I put the exif code into the page from the Dark theme and it's not picking up the exif data.

pixelpunk
10-08-2004, 08:19 AM
GD-lib bundled (2.0.28 compatible)

I also put the reuploaded the image with th EXIF data retained and I put the exif code into the page from the Dark theme and it's not picking up the exif data.

That's strange. Just a quick question regarding this: Do the admin panel report that you can use exif? (under general info, again).

pixelpunk
10-08-2004, 05:03 PM
The thumbnail thing I believe I've nailed.

Open up the admins script ( /admin/index.php)
Search for imagecopyresized and replace that with imagecopyresampled.

A check for GD version will be included next version, but for now that should be a fix for those with GD version 2.0.1 and higher.

Anonymous
10-08-2004, 05:36 PM
GD-lib bundled (2.0.28 compatible)

I also put the reuploaded the image with th EXIF data retained and I put the exif code into the page from the Dark theme and it's not picking up the exif data.

That's strange. Just a quick question regarding this: Do the admin panel report that you can use exif? (under general info, again).

Yeah I'm not seeing it under the General Info section. I assume it should show up under Host Information?

Anonymous
10-08-2004, 05:37 PM
The thumbnail thing I believe I've nailed.

Open up the admins script ( /admin/index.php)
Search for imagecopyresized and replace that with imagecopyresampled.

A check for GD version will be included next version, but for now that should be a fix for those with GD version 2.0.1 and higher.

yup. worked! Thanks! :D

Anonymous
10-08-2004, 05:41 PM
BTW, on the EXIF data thread you created on in the Departure Hall forum, you can preserve EXIF data in photoshop if you just do a save or save as instead of "Save for Web". Of course this only works if you've edited your image without using layers. The latest version of Photoshop (CS) supposedly saves EXIF data. I haven't confirmed it myself yet.

pixelpunk
10-08-2004, 05:58 PM
Thanks for the adobe exif info, much appreciated.

// punk

Anonymous
10-08-2004, 06:29 PM
The latest version of Photoshop (CS) supposedly saves EXIF data. I haven't confirmed it myself yet.

Consider it confirmed...EXIF data has always survived for me in CS and showed up in the dark template without a problem when I tested it on my site. :D

GT

ldallara
01-15-2005, 02:53 PM
Great jon, I love this code..
Thanks for all the work pixelpunk! and
the great surport form connie !