-
Notifications
You must be signed in to change notification settings - Fork 201
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
ImportParams missing during LoadImageFromBuffer #203
Comments
I used the VIPS library from C to solve it:
I hope this code helps fix the bug |
Thanks so much for the bug report @dark-wind! This is valuable work. Would it be too much to ask if you could provide a PR? Any contributions are greatly appreciated! If not, I will try and take a look at this at some stage although I'm now on summer vacation so it might take a bit of time. |
Dpi is a double type.However, govips use MAYBE_SET_INT to set it.See here https://github.com/davidbyttow/govips/blob/master/vips/foreign.c#L122. |
Thanks for the fix! Do you maybe have an estimate of when this will end up in a stable release? I'm currently using the version tied to the commit of the fix, and everything seems to be alright but would prefer to switch to a stable version before this goes to production. |
sure, we can do a release, i think |
Amazing, thank you! |
I got error:
when I load a pdf file with dpi params
my code
the "Density(dpi)" didn't work
My goal
pdf to jpg with dpi params
such as
bug point
this code located in "vips/foreign.go" line 253
I am new to both Libvips and Golang, I don't know how to lock and fix this problem
The text was updated successfully, but these errors were encountered: