Skip to content

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

@anitagraham

Description

@anitagraham

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions