2008年12月14日星期日

Re: [fw-mvc] Image resizing performance question

Hi,

> I was just curious. What type of algorithm do you use for image
> storage?
>
> The way I am currently doing it is just storing all images in the
> root of
> the images directory. I am not sure if this is the most efficient
> way in
> terms of maximizing the # of files that can be stored.

It depends on the number of images that you have. If you have just few
thousands of images, you can put all files into the same directory.
Otherwise, you should create a directories structure on 2 or more
levels.

Off topic. If you need a way to auto-place a watermark over the
images, you can try my own algorithm:
http://blog.pracucci.com/2008/08/30/watermarks-with-php-and-imagick/

Marco Pracucci

没有评论: