Em Ter, 2004-06-08 �s 09:51, Tiago Cruz escreveu:
> Queria colocar no site em uma janelinha, tipo 200x200 e quando o cara
> clicar abrir a original (digamos, 800x600 sei l�)

> Sei fazer isso manualmente pelo gimp ou pelo photo shop (blerg!) mas n�o
> tem como fazer um script? A� ja coloco no site com dica.... heheheh

Use o convert do pacote ImageMagick.


To make a thumbnail of a JPEG image, use:

    convert -size 120x120 cockatoo.jpg -resize 120x120 +profile "*" thumbnail.jpg

In this example, '-size 120x120'
gives a hint to the JPEG decoder
that the image is going to be
downscaled to 120x120, allowing it
to run faster by avoiding returning
full-resolution images to
ImageMagick for the subsequent
resizing operation. The '-resize
120x120' specifies the desired
dimensions of the output image. It
will be scaled so its largest
dimension is 120 pixels. The
'+profile "*"' removes any ICM,
EXIF, IPTC, or other profiles that
might be present in the input and
aren't needed in the thumbnail.

[]'s


-- 
Jos� Paulo Batista Silva (sabug�o)
Linux user #143502


---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a