Search found 4 matches
- 2013-10-23T15:41:13-07:00
- Forum: Users
- Topic: Scale down picture, fill rest with border.
- Replies: 6
- Views: 4410
Re: Scale down picture, fill rest with border.
(712/(712*30/100)/2+10)*10) Is NOT the same as ((30/100)/2+10)*10 Agreed. But it is the same as ((100/30)/2+10)*10. Your expression can be simplified: ($ImageSize/($ImageSize*$Percent/100)/2+10)*10 = 500 / $Percent + 100 For example: (712/(712*30/100)/2+10)*10 = 116.6667 500 / 30 + 100 = 116.6667 ...
- 2013-10-23T15:06:53-07:00
- Forum: Users
- Topic: Scale down picture, fill rest with border.
- Replies: 6
- Views: 4410
Re: Scale down picture, fill rest with border.
Your expression is strange. It contains ImageSize twice, and they cancel each other. So the result does not depend on ImageSize. At the time writen the code, it was more important to understand what is going on thant make the code pretty. In this cas eI clearly can see that I A.. take the size of ...
- 2013-10-23T07:59:36-07:00
- Forum: Users
- Topic: Scale down picture, fill rest with border.
- Replies: 6
- Views: 4410
Re: Scale down picture, fill rest with border.
Oh thank you sir.Bonzo wrote:You can use -extent and that is even easier if all your final images are the same size:Code: Select all
convert input.jpg -resize 500x500 -background blue -gravity center -extent 600x600 output.jpg
That was exactly what I needed.

- 2013-10-22T22:09:40-07:00
- Forum: Users
- Topic: Scale down picture, fill rest with border.
- Replies: 6
- Views: 4410
Scale down picture, fill rest with border.
I suppose this wil be more a mathematic problem than anythingelse.. I have this Command convert Forvaltningsratten.png -resize 20% -bordercolor Black -border 200%x200% 20-perc_Förvaltningsratten.png Regarding to how much I shrink the original image - the border parameters will be different. I am ...