PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Jul 21, 2018 6:42 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Sep 05, 2004 6:03 pm 
Offline
Forum Newbie

Joined: Sun Sep 05, 2004 5:51 pm
Posts: 2
Location: Fremont, Calif USA
Hi all,

I was wondering if there is a function or class in php that would extract the image width and height values when the file is processed by a php script?

I use several generator scripts to build static html content and this is always an issue to produce clean, compliant code.

Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 05, 2004 6:18 pm 
Offline
DevNet Resident
User avatar

Joined: Thu Feb 12, 2004 8:19 pm
Posts: 1165
Location: ohio
http://www.php.net/image

Note GD may need to be installed, but the functions you'll want to look at are:
imagesx() / gets width
imagesy() / gets height

and also be sure to look at:
http://us2.php.net/manual/en/function.getimagesize.php


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 06, 2004 4:59 pm 
Offline
Forum Newbie

Joined: Sun Sep 05, 2004 5:51 pm
Posts: 2
Location: Fremont, Calif USA
Thanks a lot.

You just need to know where to look.

Andrew


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 06, 2004 6:12 pm 
Offline
DevNet Resident
User avatar

Joined: Thu Feb 12, 2004 8:19 pm
Posts: 1165
Location: ohio
your welcome

:D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group