Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

PHP reading extra file info...

 
   Database Forums (Home) -> PHP RSS
Next:  Stored procedure to copy tables & also preser..  
Author Message
Shawn Wilson

External


Since: Aug 18, 2005
Posts: 3



(Msg. 1) Posted: Thu Aug 18, 2005 5:55 pm
Post subject: PHP reading extra file info...
Archived from groups: alt>comp>lang>php, others (more 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 parse that out
and show it on screen.

Is that possible with PHP?

Thanks!

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

 >> Stay informed about: PHP reading extra file info... 
Back to top
Login to vote
Janwillem Borleffs1

External


Since: Sep 17, 2003
Posts: 170



(Msg. 2) Posted: Thu Aug 18, 2005 11:26 pm
Post subject: Re: PHP reading extra file info... [Login to view extended thread Info.]
Archived from groups: alt>comp>lang>php, others (more info?)

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

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

http://www.php.net/exif


JW

 >> Stay informed about: PHP reading extra file info... 
Back to top
Login to vote
Andy Hassall

External


Since: Jan 11, 2004
Posts: 465



(Msg. 3) Posted: Thu Aug 18, 2005 11:26 pm
Post subject: Re: PHP reading extra file info... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 18 Aug 2005 23:26:27 +0200, "Janwillem Borleffs"
wrote:

>Shawn Wilson wrote:
>> How do I read the extra file info from a .jpg image file (or any
>> other file for that matter)?
>>
>
>For pictures from digital camera's, you can use the exif functions:
>
>http://www.php.net/exif

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 / / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
 >> Stay informed about: PHP reading extra file info... 
Back to top
Login to vote
Shawn Wilson

External


Since: Aug 18, 2005
Posts: 3



(Msg. 4) Posted: Thu Aug 18, 2005 11:26 pm
Post subject: Re: PHP reading extra file info... [Login to view extended thread Info.]
Archived from groups: per prev. post (more 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" wrote in message

> On Thu, 18 Aug 2005 23:26:27 +0200, "Janwillem Borleffs"
>
> wrote:
>
>>Shawn Wilson wrote:
>>> How do I read the extra file info from a .jpg image file (or any
>>> other file for that matter)?
>>>
>>
>>For pictures from digital camera's, you can use the exif functions:
>>
>>http://www.php.net/exif
>
> 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 / / <http://www.andyh.co.uk>
> <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
 >> Stay informed about: PHP reading extra file info... 
Back to top
Login to vote
Shawn Wilson

External


Since: Aug 18, 2005
Posts: 3



(Msg. 5) Posted: Fri Aug 19, 2005 3:40 pm
Post subject: Re: PHP reading extra file info... [Login to view extended thread Info.]
Archived from groups: per prev. post (more 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" wrote in message

> Shawn Wilson wrote:
>> How do I read the extra file info from a .jpg image file (or any
>> other file for that matter)?
>>
>
> For pictures from digital camera's, you can use the exif functions:
>
> http://www.php.net/exif
>
>
> JW
>
>
>
 >> Stay informed about: PHP reading extra file info... 
Back to top
Login to vote
eraseit

External


Since: Aug 22, 2005
Posts: 1



(Msg. 6) Posted: Mon Aug 22, 2005 12:37 pm
Post subject: Re: PHP reading extra file info... [Login to view extended thread Info.]
Archived from groups: alt>comp>lang>php, others (more info?)

http://us2.php.net/exif_read_data

Shawn Wilson wrote:
> 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 parse that out
> and show it on screen.
>
> Is that possible with PHP?
>
> Thanks!
>
> -----------------
> Shawn Wilson
 >> Stay informed about: PHP reading extra file info... 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Reading from txt file - I have the following code: <?php $username = $_POST['username']; $myFile = "clientlist.txt"; $fp = fopen($myFile, 'r'); $content = fread( $fp, filesize( $myFile ) ); $inputString = $username; $arrFp = file( $myFile ); // Open the data file ...

UTF-8 file reading and writing for PHP - I'm creating a page that: - accepts user input in whatever language - saves that input to a file - reads the file and displays the original input The following code successfully writes the user input to a file (when I open the file, it's in the..

Simple text file reading codes NOT working - My PHP code to read a simple text file is listed below. What could have gone wrong here? When I run it, the browser displays: 'COULD NOT Read' opton of the fread() function. I thought the code was OK. <?php $visitorFile="counter.txt&q...

get file info using COM - I am trying to get file information using COM but I do not get all of the info using the code below. $shell = new COM("Shell.Application") or die("COM Shell Application Problem."); $myfolder= $shell->Namespace(0); $fileinfo=..

getting file info using COM - I am trying to get file information using COM but I do not get all of the info using the code below. $shell = new COM("Shell.Application") or die("COM Shell Application Problem."); $myfolder= $shell->Namespace(0); $fileinfo=..
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]