Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP reading extra file info...
- Shawn Wilson
August 18, 2005, 9:02 pm
rate this thread
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
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 parse that out
and show it on screen.
Is that possible with PHP?
- Janwillem Borleffs
August 18, 2005, 9:26 pm
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
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:
Feel free to browse the album, of if you just care to see just one
picture... I like this one:
- » an idiot question: if ord() returns a value between 0 and 127, then the character is ASCII...
- — Previous thread in » PHP Scripting Forum