Re: Reduce the number of commands

Akos Marton <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/22/2010 01:35 PM, Jan Öhman wrote:
Hi,

You should use a loop or something similar:
batch-file can help you under windows.

Regards,
mAkos

> Hello!
> 
> I want to:
> 1. Resize the images (as an example max 300x300)
> 2. Remove imageinformation
> 3. Give the images rounded corners
> 4. Add the image with rounded corners on a transparent square image 
> (300x300)
> 
> Programming sequence below performs this but with 3 pcs of commands
> Is it possible to simplify in some way?
> 
> (Code for Windows / DOS)
> convert -define jpeg:size=300x300 c:\temp\pic\hatching_orig.jpg 
> -thumbnail "300x300>" c:\temp\pic\pad_extent.png
> convert c:\temp\pic\pad_extent.png ( +clone  -threshold -1 -draw "fill 
> black polygon 0,0 0,25 25,0 fill white circle 25,25 25,0" ( +clone -flip 
> ) -compose Multiply -composite ( +clone -flop ) -compose Multiply 
> -composite ) +matte -compose CopyOpacity -composite  
> c:\temp\pic\rounded_corners.png
> convert c:\temp\pic\rounded_corners.png  -background transparent 
> -gravity center -extent 300x300 c:\temp\pic\Image1.gif
> 
> 
> //Jan
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLWbFcAAoJEK2sXgt/q8Zad5oIAKmHTvdPqSxbC9OoFdYltPKy
38H46G3di/8WGwhwYLc+W3Z3E0z1R0c7fT4i1n5K3TJG51u2tkiabpKR5p/zlZ6w
UUC5P0KAQmZxcxw2zOc40LsiGpsmhg68hwKfKNKrsTqe/CsG9sW5vdpSJY5nR+yL
gch6TtFe3BMa22+tjsMUjYdBkYtriDMvOZnwtNccWqv8jVdeKPpm/du/YteOLzRx
VtoXmsC0BeBiAPK/BE0aJcosVwvFjMzIlkjUIOug8XWmqh96LGN4FM0zwhX4UTy2
SZ1xgioU1XIFloVdwdGjm5ZR7pTfxPw9O1JHWPYUd9nxjT1Ko9q0t79lNT+1pr0=
=W4F0
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.