flokosiol / kirby-focus

Better image cropping for Kirby CMS
184 stars 14 forks source link

Update im.php #15

Closed mirkoclemente closed 7 years ago

mirkoclemente commented 7 years ago
  1. The ^ operator has to be placed after the width and height.
  2. Without quotes it didn't work on one of my client's servers with ImageMagick 6.9.4-9 Q16 i386 2016-06-21 installed. On my Mac I have never had any problems. (ImageMagick 6.9.3-7 Q16 x86_64 2016-03-27)

The adjustments are based on what I found in the documentation under "Basic adjustments to width and height; the operators %, ^, and !": http://www.imagemagick.org/script/command-line-processing.php#geometry

flokosiol commented 7 years ago

Thanks for your work. I will have a look at this as soon as possible.

flokosiol commented 7 years ago

Thanks again for your help. Just one comment: I think this change should also be reported to the toolkit repo, because it's part of the original im driver.