Skip to content
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

encode_test fails with Vips::Error: unable to call VipsForeignSaveJp2kBuffer: unknown option profile #15

Open
anitagraham opened this issue Sep 21, 2021 · 0 comments

Comments

@anitagraham
Copy link
Contributor

I am running the test suite (in preparation for submitting a PR) and getting this failure, which is not, I think, related to the PR. Here is the stack trace:

  test_0118_svg to jpc                                           ERROR (0.00s)
Minitest::UnexpectedError:         Vips::Error: unable to call VipsForeignSaveJp2kBuffer: unknown option profile
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ruby-vips-2.1.2/lib/vips/operation.rb:379:in `block in call'
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ruby-vips-2.1.2/lib/vips/operation.rb:374:in `each'
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ruby-vips-2.1.2/lib/vips/operation.rb:374:in `call'
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ruby-vips-2.1.2/lib/vips/image.rb:629:in `write_to_buffer'
            /private/var/www/dragonfly_libvips/lib/dragonfly_libvips/processors/encode.rb:44:in `call'
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/dragonfly-1.4.0/lib/dragonfly/job/process.rb:23:in `apply'
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/dragonfly-1.4.0/lib/dragonfly/job.rb:119:in `block in apply'
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/dragonfly-1.4.0/lib/dragonfly/job.rb:119:in `each'
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/dragonfly-1.4.0/lib/dragonfly/job.rb:119:in `apply'
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/dragonfly-1.4.0/lib/dragonfly/job.rb:250:in `result'
            /Users/anita/.rbenv/versions/2.7.2/lib/ruby/2.7.0/forwardable.rb:229:in `mime_type'
            /private/var/www/dragonfly_libvips/test/dragonfly_libvips/processors/encode_test.rb:20:in `block (5 levels) in <top (required)>'

I am running

  • vips-8.11.3-Wed Aug 11 09:29:27 UTC 2021
  • dragonfly_libvips 2.4.2
  • Ruby 2.7.2, 3.02
  • macOS 11.6

The doc for jp2ksave doesn't include :profile in the options list.
(Checked pngsave - does include :profile)

If it is as simple as adding jp2k to list of options without profile support I can submit a PR for that.
Is there anywhere else to look?

thanks,

Anita

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant