Page 1 of 1

Image Geometry bug about percent

Posted: 2014-09-17T19:55:06-07:00
by needkane
magick syntax:
scale-x%xscale-y% Height and width individually scaled by specified percentages. (Only one % symbol needed.)

Now my problem:
convert a.gif -coalesce -thumbnail 75%x -layers optimize /tmp/imgmogr2-875452210.gif //Height and width both scaled by specified percentage,but according magick syntax is means height should unchange

Re: Image Geometry bug about percent

Posted: 2014-09-17T20:01:54-07:00
by snibgo
Try "-thumbnail 75x100%"

[Mod note: as this is a usage question, not Magick++, I'm moving it to Users.]

Re: Image Geometry bug about percent

Posted: 2014-09-18T19:54:55-07:00
by needkane
snibgo wrote:Try "-thumbnail 75x100%"

[Mod note: as this is a usage question, not Magick++, I'm moving it to Users.]
I know the answer is ok ,but x75% accomplish the purpose desired (only height change)

Re: Image Geometry bug about percent

Posted: 2014-09-18T20:23:35-07:00
by fmw42
What version and platform of IM are you using?

On IM 6.8.9.7 Q16 Mac OSX I get:

This is not correct:
convert logo: -scale 75%x -format "%wx%h" info:
480x360

This is correct:

Code: Select all

convert logo: -scale 75%x100% -format "%wx%h info:
480x480

This is correct:

Code: Select all

convert logo: -scale x75% -format "%wx%h" info:
640x360

I do not know if this is a bug or not. But there is no reason not to add 100% for the height. That is always correct and what you are trying to do.

If you think it is a bug. Please report on the Bugs forum.