-
Notifications
You must be signed in to change notification settings - Fork 61
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
TypeError (no implicit conversion to float from string) on Ubuntu #236
Comments
Hi @belangp,
It looks like ruby-vips has debug logging. Try: require 'vips'
GLib::logger.level = Logger::DEBUG Though it's incredibly chatty. You could try enabling that and see if there's any useful output before the error. |
Thanks @jcupitt , the logger output is:
|
Yes, the call to |
Found it! Thanks a lot for your help and quick responses, really appreciate it! |
No problem. I'd avoid resize (in case it was your code triggering that). It's /much/ faster to use |
For others struggling with this issue, ActiveStorage switched from using MiniMagick to using image_processing. If you used to do something like this: the new correct way is to use: Refer to this page for details on the options available: |
It was indeed in my code. Thanks for the tip @jcupitt I'll look into this for sure! :) |
I think if you're using You can verify by enabling logging and looking at the sequence of calls You can also set the
It's not quite as insanely chatty as ruby-vips logging. |
I did check the image_storage documentation and that's correct. All resize_to_* will call thumbnail. |
Hi all,
I've updated my gems to their latest version and updated libvips to 8.10.0. Everything works perfectly well on MacOS, however, on Ubuntu, I'm getting the following message:
I followed all installation instructions, set the variables in .bashrc and .bash_profile as requested for libvips and ruby-vips:
.bashrc file:
.bash_profile file:
.profile file:
Using Rails with RVM 1.29.10 and Ruby 2.6.5 on all my systems.
Any suggestions as to why it won't work on Ubuntu, but works on MacOS?
The text was updated successfully, but these errors were encountered: