images

This is a discussion on images within the PHP Language forums, part of the PHP Programming Forums category; I am a newbie. I have a large number of images. Is there a function that return a small image ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2005
mickeyg
 
Posts: n/a
Default images

I am a newbie. I have a large number of images. Is there a function that
return a small image without first writing to disk. I want to minimize the
number of files I have on my disk. This is for intenrnal application that I
want to develop. It will be accessed through local area network.

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 04-16-2005
Daniel Tryba
 
Posts: n/a
Default Re: images

mickeyg <meshulamtemp@yahoo.com> wrote:
> I am a newbie. I have a large number of images. Is there a function that
> return a small image without first writing to disk.


See the GD functions in the manual...

-read the image
-resize the image
-return the result to browser

Up to you to find the exact function names :)

> I want to minimize the number of files I have on my disk. This is for
> intenrnal application that I want to develop. It will be accessed
> through local area network.


So you are sacrificing _huge_ amounts of CPU time for a couple of kb per
image!

Reply With Quote
  #3 (permalink)  
Old 04-16-2005
rovisoft
 
Posts: n/a
Default re:images

Yes, you can use gd image resizing, you might want to read about gd
and the functions of it here
http://ro.php.net/manual/en/function...yresampled.php!

You have there an example that i think will suit your needs!

Ovidiu


Developers Forum
http://www.DevPlug.com --Connecting Developers

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0