2008年12月14日星期日

Re: [fw-mvc] Image resizing performance question

Hi there.

I have used a class for image manipulation in conjunction with the MVC very
successfully recently when faced with a similar issue to this.

http://www.verot.net/php_class_upload.htm

The class takes care of a lot of things like sizing and watermarks etc.

Oo

On 14/12/08 10:22, "Marco Pracucci" <pracucci@gmail.com> wrote:

> 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
>

没有评论: