Professional Web Applications Themes

PHP reading extra file info... - PHP Development

I am an ameture digital photographer (along with a newbie developer) and I've an album of my pictures online. I've been building this album to be just how I want it and I've come to one last feature that I can't figure out. How do I read the extra file info from a .jpg image file (or any other file for that matter)? Each one of my pictures has 10 or 20 things included in the file like the Camera model, f-stop used, etc... and I want to be able to p that out and show it on screen. Is ...

  1. #1

    Default PHP reading extra file info...

    I am an ameture digital photographer (along with a newbie developer) and
    I've an album of my pictures online. I've been building this album to be
    just how I want it and I've come to one last feature that I can't figure
    out.

    How do I read the extra file info from a .jpg image file (or any other file
    for that matter)?

    Each one of my pictures has 10 or 20 things included in the file like the
    Camera model, f-stop used, etc... and I want to be able to p that out
    and show it on screen.

    Is that possible with PHP?

    Thanks!

    -----------------
    Shawn Wilson


    Shawn Guest

  2. #2

    Default Re: PHP reading extra file info...

    Shawn Wilson wrote: 

    For pictures from digital camera's, you can use the exif functions:

    http://www.php.net/exif


    JW



    Janwillem Guest

  3. #3

    Default Re: PHP reading extra file info...

    On Thu, 18 Aug 2005 23:26:27 +0200, "Janwillem Borleffs" <com>
    wrote:
     
    >
    >For pictures from digital camera's, you can use the exif functions:
    >
    >http://www.php.net/exif[/ref]

    See also: http://pel.sourceforge.net/

    ... which is a pure PHP implementation of EXIF, useful if you're on shared
    hosting that won't modify the config.

    --
    Andy Hassall / <co.uk> / <http://www.andyh.co.uk>
    <http://www.andyhsoftware.co.uk/space> Space: disk usage ysis tool
    Andy Guest

  4. #4

    Default Re: PHP reading extra file info...

    I don't have PHP5 on my server yet... and being that it's not MY server
    (shared leased multi-domain hosting) I'm not sure if I can get them to
    switch up.

    -----------
    Shawn Wilson


    "Andy Hassall" <co.uk> wrote in message
    news:com... 
    >>
    >>For pictures from digital camera's, you can use the exif functions:
    >>
    >>http://www.php.net/exif[/ref]
    >
    > See also: http://pel.sourceforge.net/
    >
    > ... which is a pure PHP implementation of EXIF, useful if you're on shared
    > hosting that won't modify the config.
    >
    > --
    > Andy Hassall / <co.uk> / <http://www.andyh.co.uk>
    > <http://www.andyhsoftware.co.uk/space> Space: disk usage ysis tool[/ref]


    Shawn Guest

  5. #5

    Default Re: PHP reading extra file info...

    Perfect... I had to ask for PHP to be recompiled with the EXIF option
    though, but they did it in an hour. Sometimes I just love my leased server
    company...

    I added EXIF functions to my album site and viola! I have camera settings
    displayed with all my pictures.

    I did find it strange to see the actual EXIF info though... like focal
    length was actually stored as 55/1 for 55mm and f-stop was stored as 45/10
    for f/4.5. An older camera I have pictures from actually stores the focal
    length wrong... storing 55mm as 550/100.

    Strange to work with, but I've got it working.

    Anyone who'd care to see it in action, feel free:
    http://www.dvigroup.net/album

    Feel free to browse the album, of if you just care to see just one
    picture... I like this one:

    http://www.dvigroup.net/album/detail.php?id=292&pic=02920003.jpg


    -------------
    Shawn Wilson

    "Janwillem Borleffs" <com> wrote in message
    news:4304fd00$0$64824$euronet.nl... 
    >
    > For pictures from digital camera's, you can use the exif functions:
    >
    > http://www.php.net/exif
    >
    >
    > JW
    >
    >
    >[/ref]


    Shawn Guest

  6. #6

    Default Re: PHP reading extra file info...

    http://us2.php.net/exif_read_data

    Shawn Wilson wrote: 

    eraseit@gmail.com Guest

Similar Threads

  1. reading header info
    By Mark in forum ASP.NET Web Services
    Replies: 1
    Last Post: September 28th, 01:43 PM
  2. Striping extra info from a variable
    By koeniga in forum Coldfusion - Getting Started
    Replies: 2
    Last Post: April 7th, 07:18 PM
  3. How to get rid of an extra box on an EPS file?
    By Erin Lee in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 1
    Last Post: July 11th, 08:01 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139