RE: thumbnail generator
I would say on upload you make the sizes needed once. Why constantly resize
for each page load or on initial view / load check to see if its been
created if not create it. But as for performance I have no proof to say
which is better.
K
-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Phang Mulianto
Sent: Friday, April 08, 2011 10:40 PM
To: cake-php@googlegroups.com
Subject: Re: thumbnail generator
Is it better generaste image on the fly or when uploading we resixze
to some thumbnail size and save the image to be loaded later..
How about the performance issue if the site in full load..any experience so
far?
On 4/8/11, euromark <dereuromark@googlemail.com> wrote:
> actually you can use any generator - because you can generate any size
> you want
> from 1 up to 1000000
> its just a matter of "GD or Imagick?"
>
> there are many cake thumbnail helpers available
> the first google result would be
> http://www.studiocanaria.com/articles/cakephp_thumbnail_helper
>
> the principle is always the same
> upload in original size, dont do anything with it.
> generate thumbnails on demand, that means in the view where it is
> rendered.
> you usually store the images as some kind of hash value and if this
> hash already exists
> use this image otherwise generate it.
> pretty easy
>
> if you have trouble with quality, you forgot to "resharpen" the image.
> never forget that if you reduce the image size dramatically.
> using phpthumb as library (which i recommend!) you can easily add a
> sharpen filter which will improve the quality by 200 to 300% - at
> least.
>
>
> On 8 Apr., 16:54, Rishab Jain <jairis...@gmail.com> wrote:
>> Hi,
>>
>> I tried so many thumbnail generators available over internet. But none
>> of them proved to be of a good quality.
>>
>> I need a thumbnail generator which I can use to generate 2 separate
>> copies the image uploaded of 2 different sizes.
>>
>> Has someone used any generator in cakephp?
>>
>> regards,
>> Rishab
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group
at
> http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home