Skip to content
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

Closed
kivist opened this issue Jul 22, 2015 · 3 comments
Closed

Error when chop after trim #18

kivist opened this issue Jul 22, 2015 · 3 comments
Labels

Comments

@kivist
Copy link

kivist commented Jul 22, 2015

test

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

@urban-warrior
Copy link
Member

Try this:

convert test.png -trim +repage -gravity East -chop 3x0 test.png

@kivist
Copy link
Author

kivist commented Jul 22, 2015

Issue solved.

Now I know the meaning of
"Here we trim the image, but only to list the result on what part of the image was trimmed, not the actual trimmed image. "

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.

@urban-warrior
Copy link
Member

You actually can chop an image with a virtual canvas, it may give unexpected results unless you take into account the virtual canvas geometry.

@dlemstra dlemstra added the usage label Jul 23, 2015
@tysmith tysmith mentioned this issue Apr 7, 2016
This was referenced Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants