Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to write to buffer in VIPS file format? #381

Unanswered
HuBandiT asked this question in Q&A
Discussion options

Greetings,

My first time using VIPS.

I am trying to write a VIPS image into a (memory) buffer in VIPS format, however I'm getting an error:

irb(main):035:0> Vips::Image.black(100, 100).write_to_buffer ".vips"
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ruby-vips-2.2.0/lib/vips/operation.rb:228:in `build': vipssave_target: no filename associated with target (Vips::Error)
 from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ruby-vips-2.2.0/lib/vips/operation.rb:483:in `call'
 from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ruby-vips-2.2.0/lib/vips/image.rb:638:in `write_to_buffer'
 from (irb):35:in `<main>'
 from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/irb-1.6.2/exe/irb:11:in `<top (required)>'
 from C:/Ruby32-x64/bin/irb:33:in `load'
 from C:/Ruby32-x64/bin/irb:33:in `<main>'

What would be the correct invocation?

Thank you in advance.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /