Re: php generated images vs image file...which is better?
- From: none <""arjen\"@(none)">
- Date: Fri, 29 Jun 2007 10:53:42 +0200
peter wrote:
Yup and if you must create images in the fly for whatever reason atleast cache the images that you have madeshall we say you want to creae a banner, a button, and other images
for your site. some create images on the fly through php using gd
library. is this more advisable or more efficient compared to creating
an image file (.jpg) shall we say using photoshop?
If there is no reason to create the images on the fly then a hard copy of the image is always the best option. If you create images on the fly then php will have to create the image everytime it is requested which wastes server resources.
if(file_exists($img))
{
// include image
}
else
{
//create image
/ cache image
}
.
- References:
- php generated images vs image file...which is better?
- From: shotokan99
- Re: php generated images vs image file...which is better?
- From: peter
- php generated images vs image file...which is better?
- Prev by Date: Re: php speed compared to C++ cgi
- Next by Date: Re: php mail() randomly appends "%20" to my emails
- Previous by thread: Re: php generated images vs image file...which is better?
- Next by thread: Re: php generated images vs image file...which is better?
- Index(es):