-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add a failing test for vips::VError exception #399
Conversation
Hi Samy, there was a recent problem highlighted by #387 (comment) where it was possible to get incorrect values for If so, the fix here is probably to ensure the |
It might be best if vips is the single source of image metadata if possible |
I agree, thanks Samy. Setting width and height on the |
Thanks for the opportunity ... I also took the opportunity to add a try/catch. |
This looks great, thanks for the work on this. What's the origin of the |
The image can be found here. Not sure about the licence. I can replace it with a another with the same dimensions and more explicit license if you want. |
Added a blank image with the correct dimensions. |
Fantastic work, than you very much for this Samy! |
@lovell If appropriate please cut us a 0.14.1 release. It seems all issues on the milestone are covered. |
@salzhrani v0.14.1 now available via npm, thanks for your additions! |
There is a discrepancy between the raw buffer size that is emitted and expected. it is my understanding that a raw image buffer size should be the product of
width * height * channels
but it seems that there is a difference in rounding of the image dimensions. in the specific case in this test the buffer length should be840 * 473 * 3 = 1191960
but instead1189440
is emitted which seems to be the product of840 * 472 * 3