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 in the write with the convert engine with PAM images #490

Open
gtnx opened this issue Apr 12, 2017 · 0 comments
Open

Error in the write with the convert engine with PAM images #490

gtnx opened this issue Apr 12, 2017 · 0 comments

Comments

@gtnx
Copy link
Contributor

gtnx commented Apr 12, 2017

I need to resize the following image using the convert image.

logo

This image seems to be "peculiar" because of the output of convert:

$> convert image.jpeg -auto-orient -colorspace RGB -scale 300x51! -interlace line -quality 95 /tmp/tmpt49zq84_.jpg
Decoded /var/tmp/magick-90708E_oYRuZuEia9. Dimensions: 1186 x 200 . Format: lossy. Now saving...
Saved file /var/tmp/magick-90708Dxx1Mcb7LAfD

$> echo $?
0

The issue is that convert output those two lines on stderr. In the code, an error is raised if something is outputed on stderr. Even if the status code of the process is 0 (ok), like in the case above.

Wouldn't it make more sense to test the status code of the subprocess rather than checking if something is written on stderr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant