Page 1 of 1

[solved] DDS-Files aspect ratio

Posted: 2016-07-08T12:44:30-07:00
by Avanatus
Hi all,
i converted some dds files - all works fine - except - it seems for me the resize option preserves the aspect ratio of a converted file....

I want to stretch it more.

If i use the resize command it resizes it not to the values i use - it resizes it to preserve the aspect ratio of the base file....

Is there a switch that preserves the aspect ratio?

Re: DDS-Files aspect ratio

Posted: 2016-07-08T13:04:12-07:00
by fmw42
see http://www.imagemagick.org/script/comma ... p#geometry

If your input and specified output aspect are different, then -resize will preserve the input aspect and you will not get the desired output aspect. You can force it to the desired aspect using !, but then the image will be distorted to fit. You can make it correspond to the smaller dimension and have the larger dimension larger than desired using ^, but then crop to the desired aspect. Or you can leave off the flags and get it a little too small in the smaller dimension and will have to pad the output.

Re: DDS-Files aspect ratio

Posted: 2016-07-08T13:19:08-07:00
by Avanatus
Hello fmw42

thank you for your help :-)

Found in the meantime the option switch for resize ignore aspect ratio ! ...

I am using windows with batchfiles - so the correct statement for my batchfile is not 31x17! it is 31x17^^! ...

Sometimes reading the manual helps. :-)

Avanatus

Re: [solved] DDS-Files aspect ratio

Posted: 2016-07-08T14:26:57-07:00
by fmw42
Yes, Windows syntax has different escapes and the batch files are different again.

Re: [solved] DDS-Files aspect ratio

Posted: 2016-07-08T14:53:51-07:00
by snibgo
For Windows I prefer:

Code: Select all

-resize "31x17^!"
This always works in cmd or BAT, whether or not enabledelayedexpansion is in effect.