resize question

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
zetjee

resize question

Post 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)
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: resize question

Post 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
zetjee

Re: resize question

Post 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.,
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: resize question

Post 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.
Post Reply