Closed
Description
After upgrade to ruby-vips 2.1.0 I get the following warnings on ubuntu focal with vips 8.9.1:
# test.rb
require "vips"
::Vips::Image.new_from_array [[-1, -1, -1],
[-1, 32, -1],
[-1, -1, -1]], 24
Output:
(test.rb:40847): VIPS-WARNING **: 11:21:01.732: can't set metadata "scale" on shared image
(test.rb:40847): VIPS-WARNING **: 11:21:01.732: can't set metadata "offset" on shared image
To Reproduce
Use the following bash script on an ubuntu focal machine:
# install libvips if not installed
apt install libvips42
# create Gemfile
echo "source 'https://rubygems.org'
gem 'ruby-vips'" > Gemfile
# install gems
bundle install
# create test file
echo 'require "vips"
::Vips::Image.new_from_array [[-1, -1, -1],
[-1, 32, -1],
[-1, -1, -1]], 24' > test.rb
# run test file
bundle exec ruby test.rb
Expected behavior
No warnings
Environment
-
OS: Ubuntu Focal
-
Version 20.04.2
-
Vips version: libvips42:amd64/focal 8.9.1-2 uptodate
-
Gemfile.lock
GEM remote: https://rubygems.org/ specs: ffi (1.15.0) ruby-vips (2.1.0) ffi (~> 1.12) PLATFORMS x86_64-linux DEPENDENCIES ruby-vips BUNDLED WITH 2.2.7
Additional context
I thought it was an issue with the image processing gem so I opened an issue there, too: janko/image_processing#83
I also have some image corruption after the upgrade to ruby-vips 2.1.0
, but it only happens on my ubuntu focal server and not locally on my mac os development machine (which has a more recent vips version). Maybe the warnings are the cause.