Hi all !
On Debian testing, ImageMagick 6.9.10-23, i'm not able to use virtual canvas adjustment with negative offset anymore.
Using examples from the doc http://www.imagemagick.org/Usage/crop/#crop_viewport , the result differs on my system :
Their should be empty space at the top left of the images, but instead the image is always stuck in this corner.
Did anything changed ? It was working for me before.
Does anyone has the same result on their system ?
Thanks for any clues !
Crop with virtual canvas wrong offset when negative
Re: Crop with virtual canvas wrong offset when negative
-extent seems to be able to replace -crop for this usage, so theses commands :
converted to use -extent like this :
Produces the images currently displayed on the crop_viewport documentation page, that I can't reproduce using the -crop commands.
Is anyone able to reproduce ? Maybe the doc is not up to date ?
Have a nice day, and big thanks for this essential tool !
Code: Select all
convert rose: -crop 40x30-10-10\! crop_vp_tl.gif
convert rose: -crop 90x60-10-10\! crop_vp_all.gif
convert rose: -crop 100x100-15-25\! -background skyblue -flatten crop_viewport.gif
Code: Select all
convert rose: -background None -extent 40x30-10-10 crop_vp_tl.gif
convert rose: -background None -extent 90x60-10-10 crop_vp_all.gif
convert rose: -background skyblue -extent 100x100-15-25 -flatten crop_viewport.gif
Is anyone able to reproduce ? Maybe the doc is not up to date ?
Have a nice day, and big thanks for this essential tool !
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Crop with virtual canvas wrong offset when negative
"-crop ... !" works as advertised for me, with IM v6.9.9-50 and v7.0.7-28. It may have broken since then, of course.
For testing, I flatten against a blue background. The result doesn't then have a canvas offset that is ignored by some software viewers. Windows CMD syntax:
For testing, I flatten against a blue background. The result doesn't then have a canvas offset that is ignored by some software viewers. Windows CMD syntax:
Code: Select all
magick rose: -crop "40x30-10-10^!" -background Blue -layers flatten cropbang.png
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Crop with virtual canvas wrong offset when negative
I was not able to reproduce Anthony's examples using IM 6.9.10.56 Q16 Mac OSX. But it does work with -extent.
Re: Crop with virtual canvas wrong offset when negative
Thanks for testing ! It suggests the change was between 6.9.9 and 6.9.10, and that my install is not messed up, pheew !
Re: Crop with virtual canvas wrong offset when negative
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
Re: Crop with virtual canvas wrong offset when negative
This is real quick, thanks for the fix !