New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when chop after trim #18
Comments
Try this:
|
Issue solved. Now I know the meaning of However, is it possible to add a warning like "Cannot chop an image with canvas info" when this kind of stupid mistake was made by amateurs like me? Thanks very much. |
You actually can chop an image with a virtual canvas, it may give unexpected results unless you take into account the virtual canvas geometry. |
Code (test.png is shown above) run in cmd
(I'm not pro so I don't know how to paste good looking codes- -):
line1: convert test.png -trim test.png
line2: convert test.png -gravity East -chop 3x0 test.png
Line2 returns error :
"convert.exe: geometry does not contain image `test.png' @ warning/transform.c/ChopImage/225."
Environment:
Surface pro 3 i5 16G mem
Windows 10 x64 build 10240
ImageMagick-6.9.1-9-Q16-x64-dll.exe
The text was updated successfully, but these errors were encountered: