-
Notifications
You must be signed in to change notification settings - Fork 616
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
Breaking change in 1.19.0 #446
Comments
When reporting bugs please include the version of graphicsmagick/imagemagick you're using (gm -version/convert -version) as well as the version of this module and copies of any images you're having problems with. |
Apologies. I'm usually more useful but I was in a rush (and sadly still am) ImageMagick 6.9.1-10 Q16 x86_64 Tried on node v4.0.0 and v0.10.40 I'll try to get you some sample code later on. |
Can you see if this is fixed in 1.20.0? |
That has fixed it for both 0.10 and 4.0. Thank you! |
Hello @garrows, I've looked at most of the problems caused by 1.19.0 and I've made a new pull request. Your issue however would likely fail again. Currently, the module does not provide the image format of buffers and streams to gm, as you may expect when providing a filename. If you used something like 1.19.0 attempted to fix this and restore the expected behaviour. This means that an incorrect filename, which until now had no impact at all, would fail. The correct way to use the automatic format inference, however, remains: if you do not provide a filename, using something like It would be great to look further at the problematic files you used and how you used them to rule out other unforeseen issues. Would you still have them? |
That's unfortunate. If you do have to make the breaking change make sure its on a major version change though. The module I was having trouble with is https://github.com/garrows/IMMP which has a few tests which I think were failing with 1.19.0. I hope this helps. |
Thanks I think I've spotted the issue and it's a miss on my part. I'll fix it and let @rwky decide what to do with the pull request. |
Hi,
Love the module but your latest change seems to have broken things for me.
I'm getting the error for several files.
improper image header
-' @ error/png.c/ReadPNGImage/3921`Downgrading to 1.18.1 fixed the problem for me.
The text was updated successfully, but these errors were encountered: