SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    faulk
    SitePoint Community Guest

    Question specific exif retrieval question

    Just a quick question,

    I'm trying to retrieve certain data from 'example.jpg'. I've figured out how to display all the data, with the use of ANY_TAG:

    PHP Code:
    print_r(exif_read_data('example.jpg'ANY_TAG)); 
    How would I retrieve, for example;

    • EXIF.ExifImageWidth: 3072
    • EXIF.ExifImageLength: 2304


    Thanks,

    Mark

  2. #2
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,367
    Mentioned
    80 Post(s)
    Tagged
    3 Thread(s)
    This should work:
    PHP Code:
    $exif read_exif_data ('example.jpg');

    echo 
    "<br> ExifImageWidth = ".$exif['ExifImageWidth'] ;    

    echo 
    "<br> ExifImageLength = ".$exif['ExifImageLength'] ; 

  3. #3
    faulk
    SitePoint Community Guest
    Quote Originally Posted by Rubble View Post
    This should work:
    PHP Code:
    $exif read_exif_data ('example.jpg');

    echo 
    "<br> ExifImageWidth = ".$exif['ExifImageWidth'] ;    

    echo 
    "<br> ExifImageLength = ".$exif['ExifImageLength'] ; 


    That worked. Thanks very much.

    Mark


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •