Page 1 of 1

resize question

Posted: 2008-05-24T07:51:27-07:00
by zetjee
Hi all,
I'm using Imagemagick from the commandline and I've got a few questions.

If i resize a 1280x1024 image to 80x50 I get somthing like 69x50. How do I fill up the rest of the space (11 pixels) with white?

And when done with that is would like to watermark the images. the stamp should be in the rightlower corner.

How to put these events in a loop?
Thanks in advance. (btw, i'm a newbie to linux)

Re: resize question

Posted: 2008-05-24T08:08:28-07:00
by Bonzo
What does this give you ?

Code: Select all

convert ( original_image.jpg -resize 80x50 ) -size 80x50 xc:white -gravity center +swap -composite output.jpg
I assume you are putting an image as the watermark

Code: Select all

composite -watermark 30% -gravity Southeast watermark.png original_image.jpg watermarked.jpg
No idea about the loop as I do not use Linux

Re: resize question

Posted: 2008-05-24T08:53:56-07:00
by zetjee
Thanks! :)

The loop works great!

Ill post it in a day. Then i tested it and people who watch this threat (google) see the loop which works.

Thanks again.,

Re: resize question

Posted: 2008-05-24T09:01:18-07:00
by Bonzo
Thats a good idea zetjee as a lot of people do not do that and nobody that looks at the thread knows if it worked and how.