Thanks for posting this Robert, I have a shell script that crawls the filesystem and does "converts" to create thumbs of various sizes. The original uploads can be quite large, and i think the -size option will help speed that script up quite a bit.

/John

Robert Garcia wrote:
Yes, I have seen that, what I meant, was it was not documented by IM at all, at least I have not seen it. And it is only referenced in a few articles, like this, i have only seen this and one more.

I have doing it for some time, but for the life of me completely forgot it when I was working on the bean.

Also, I have found, there is no reason to ask for double the size. You get best performance when you ask for as little as possible. And there is no loss in quality, and I do this for pro photographers, who are VERY picky, even about thumbnails.

I can't even use thumbnail for them, I use resize, with a specific blur value and the lanczos filter/algorithm for the highest possible quality.

--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/

On Apr 28, 2006, at 8:39 AM, William M Conlon wrote:

See http://www.cit.gu.edu.au/~anthony/graphics/imagick/thumbnails/

<quote>General Thumbnail Creation
Generate Thumbnails to a specific height

Lets convert a large sample JPEG image to a GIF thumbnail 90 pixels high, with the width automatically adjusted (within the 250 pixel width limit) preserve the aspect ratio of the image.


    convert -size 500x180  hatching.jpg  -thumbnail 250x90 height.gif


    [IM Output]

Note that I used the "-thumbnail" option above. This not only resizes the image, but strips any and all profile and comment information that may be present in the original JPEG image.

I also set a minimum "-size" for the image being read in. This is passed to the JPEG library, which will return an image somehere between this size and double this size (if posible), rather that the whole very large original image. Basically don't overflow the computers memory with an huge image when it isn't needed.

The "-size" value I use is double that of the final thumbnail so that resize will still generate an reasonable result.
</quote>

On Apr 28, 2006, at 7:06 AM, Robert Garcia wrote:

So anyway, ImageMagick support this hinting. It is NOT documented anywhere, as far as I know, I just stumbled on it.

Bill

William M. Conlon, P.E., Ph.D.
To the Point
345 California Avenue Suite 2
Palo Alto, CA 94306
   vox:  650.327.2175 (direct)
   fax:  650.329.8335
mobile:  650.906.9929
e-mail:  mailto:[EMAIL PROTECTED]
   web:  http://www.tothept.com

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to