Do you have any thoughts about maximizing the number of files that can be
stored on a server? Perhaps by breaking up storing files across several
directories? I am wondering what the best way would be if I expect to store
a very large number of uploaded images that will be converted to 3
thumbnails each upon upload.
Owen Lees wrote:
>
> 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
>>
>
>
>
>
--
View this message in context: http://www.nabble.com/Image-resizing-performance-question-tp20993012p20999400.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论