Re: Storing images for photo album?
| From: | David T-G | Date: | Mon, 17 Nov 2003 03:29:17 +0000 |
| Subject: | Re: Storing images for photo album? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169880@lists.php.net to get a copy of this message | ||
Leif --
..and then Leif K-Brooks said...
%
% I'm writing a photo album in PHP. The idea is to convert user-uploaded
% images to PNGs with unique IDs (1.png, 5.png, etc.), and cache them at
OK.
% certain sizes as needed. Now I'm running into an out-of-memory
Right.
% converting user images to PNGs, and I'm not sure what to do: copy them
What are you using to convert, how are you converting, and do you know
why you're running out of memory?
% in whatever format the user used and convert to JPEGs for output? Use
% some other format for storage?
Well, I only use JPGs for my caching, but I accept GIFs and PNGs (though
nobody has taken me up on it yet, I think), so all I can say is that that
works. I don't see why PNGs wouldn't, though, except that in my quick
tests they seem a heck of a lot bigger than JPGs...
%
% --
% The above message is encrypted with double rot13 encoding. Any
*teva* V ybir guvf :-)
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!