Search found 5 matches

by benze
2013-09-11T12:41:10-07:00
Forum: Bugs
Topic: compare's exit code is always 0
Replies: 20
Views: 23056

Re: compare's exit code is always 0

We'll keep the exiting exit status for all ImageMagick utilities except the compare utility. For it, we will return the same exit status as grep. That is if the images are similar and no errors, return 0. If the images are dissimilar and no errors, return 1. If an error occurs, return 1. I don't un...
by benze
2013-09-09T18:33:17-07:00
Forum: Bugs
Topic: compare's exit code is always 0
Replies: 20
Views: 23056

Re: compare's exit code is always 0

The exit code is 0 if the ImageMagick command -line utility completes without any error exceptions. The compare utility returns an exception if two images are not similar. Really? If I compare two completely different images, I get an exception and an exit code of 1: Eric-MacBook-Pro:temp eric$ com...
by benze
2013-09-09T13:30:06-07:00
Forum: Bugs
Topic: compare's exit code is always 0
Replies: 20
Views: 23056

Re: compare's exit code is always 0

I think you should report the problem to im4java so they can change their code. There is no option available to force the exit code to zero and we should probably also not add such an obscure feature. Fair enough - will look at Im4Java to work my way around this. However, just to play devil's advoc...
by benze
2013-09-09T07:24:24-07:00
Forum: Bugs
Topic: compare's exit code is always 0
Replies: 20
Views: 23056

Re: compare's exit code is always 0

Makes sense to have this feature. We'll add it to the next release of IM. Thanks. I'm using ImageMagick 6.8.6-6 2013-08-31 Q16 on a Mac OSX installed using MacPorts. It appears that this feature is already present. Is there any way to disable this and have it still return 0 since it actually comple...
by benze
2013-09-07T18:54:31-07:00
Forum: Bugs
Topic: NullPointerException when using CompareCmd via Im4java
Replies: 1
Views: 8677

NullPointerException when using CompareCmd via Im4java

I'm trying to use the CompareCmd from im4java. When I try it with 2 identical images, the command works properly. When I try with 2 different images (same dimensions), I get an NPE. However, if I output the command to a script using cmd.createScript(), and run the script, it executes properly. Is th...