StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-24-2012, 04:04 PM
motty07 motty07 is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Feb 2012
Posts: 54
Default Exif Data

Hi

I'm trying to display EXIF data for a photo on an attachment page.

I've established the following by using the tool at http://www.wisegeek.com/how-can-i-vi...photograph.htm to examine the image files that wordpress has uploaded into its image folder.

Results are:

1. The original full size image has the EXIF data intact.
2. All the smaller images that wordpress creates (and therefore the ones it uses in attachments have the EXIF data stripped)

I suspected that the EXIF data would be stripped for the compressed images. However, according to this page http://www.bloggingtips.com/2008/07/...lery-and-exif/ and others the EXIF data is stored in a table for use.

Quote:
When you upload your photos the EXIF data is stored in the post meta data table.
However, searching all the wordpress database (using php admin to search all tables) for terms such as Nikon etc. (my camera) reveals that no EXIF data is being stored anywhere in the database?

Is Genesis doing this?

My function displays nothing on attachment page:

PHP Code:
add_action'genesis_after_post''dbm_exif' );
function 
dbm_exif() {
    if( 
is_attachment() )
    
$imgmeta wp_get_attachment_metadata$id );
    echo 
$imgmeta['image_meta']['iso'];
    echo 
$imgmeta['image_meta']['camera'];
    echo 
"hello";


Others seem to have the same problem and its not been resolved e.g.

http://www.studiopress.com/support/s...ad.php?t=19686

Can anybody throw any light on this?

Thanks in advance


UPDATE

Ok. I've done a bit of digging around and think I have found the cause of the problem.

This post helped me http://wordpress.org/support/topic/image-meta-data

At the bottom the guy says:

i was missin php module EXIF.

marking it as solved


It led me to think that as I was working on a local server (WAMP) it might not have had this php module EXIF installed (whatever that is!!!).

Tried it on a live site and the EXIF data does get stored in the database and my function now works.

Presume this missing php module EXIF (from WAMP) is the cause?

Last edited by motty07; 02-24-2012 at 04:48 PM. Reason: Problem May Have Been Solved
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exif Information lexo General Discussion 8 02-24-2012 04:09 PM
Exif data Marijn General Discussion 1 08-07-2009 08:43 AM


All times are GMT -5. The time now is 11:33 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.