PHP GD Library, rendering an image - saving the image or not (what is the most effective solution)? -
i have php script renders image image using php gd library. need know effective solution (what best way):
1.render image "on fly" this:
<img src="createimage.php=id=1" />
or:
2.render/create image while uploading first image, , store in database?
<img src="$image" />
please post link source if have :)
it faster render/create image while uploading first image, , store not in database (!!!), but in filesystem!!! refrain using blobs purpose, unnecessary overhead. moreover, files easier backup huge database full of blobs.
so second possibility right, use filesystem. i'd call technique "caching".
Comments
Post a Comment