PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Aug 13, 2020 7:24 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Wed Aug 31, 2005 6:08 pm 
Offline
Forum Newbie
User avatar

Joined: Thu Aug 04, 2005 11:01 pm
Posts: 6


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 31, 2005 6:11 pm 
Offline
Forum Contributor
User avatar

Joined: Sat Oct 25, 2003 4:03 am
Posts: 332
Location: New York City
Use html and add width='' or height='' just 1 of them to resize to the height you want. Most of the time sence you resize one size it will automaticly do the other for you. But if you want to get more advanced you could use PHP to get the sizes and use math to fix it... But HTML is way easier.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 31, 2005 6:13 pm 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
use a resizing function, such as one posted in the () while looping. One thing though, resizing that many images at one time (each time the script is run) will eat the processor and make the page run like molasses uphill in a Canadian "breeze."

I'd suggest resizing the images before hand and storing the results, or resizing only when necessary (can be a bit more advanced/involved).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 3:30 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 3:51 am 
Offline
Tranquility In Moderation
User avatar

Joined: Sun Feb 06, 2005 8:18 pm
Posts: 5001
Location: Indiana

_________________
- A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Thu Sep 01, 2005 6:47 am 
Offline
Forum Newbie
User avatar

Joined: Thu Aug 04, 2005 11:01 pm
Posts: 6
Thanks for all of your replies - I appreciciate it. I did find this GD tutorial on the web which seems to be pretty alright:



I'll give it a try later today

Thanks again
Steve[/url]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 8:16 am 
Offline
Tranquility In Moderation
User avatar

Joined: Sun Feb 06, 2005 8:18 pm
Posts: 5001
Location: Indiana

_________________
- A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 9:19 am 
Offline
DevNet Resident
User avatar

Joined: Fri Aug 08, 2003 6:53 pm
Posts: 2101
Location: Sweden
Just adding some more thoughts.
Do please have in mind that resizing on the fly is, as mentioned, memory/cpu consuming. If the page is under alot of stress you should consider using GD as a means to create physical thumbnails instead of dynamic (as shown in the example url above).

If it's possible to do for your solution that is. ;)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 10:56 am 
Offline
Forum Newbie
User avatar

Joined: Thu Aug 04, 2005 11:01 pm
Posts: 6


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 11:06 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
you have the realizing function write the image stream to a file instead of the output stream. Have a look at .


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 11:31 am 
Offline
Forum Newbie
User avatar

Joined: Thu Aug 04, 2005 11:01 pm
Posts: 6


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 11:42 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 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