Results 1568 comments of John Cupitt

I added custom input and output streams to ruby-vips and merged to master. You can now write this, for example: ```ruby class Mystreami < Vips::Streamiu def initialize(filename) @filename = filename...

Hiya, yes, your first example should work, from a quick look. Yes, you need to use FFI `get_bytes` and `put_bytes` at the moment. It's ugly, but I think it's necessary...

`put_bytes` is just a thin FFI layer over the C `memcpy` -- there's no memory alloc or free there. `get_bytes` takes a copy, unfortunately, so you're right, we might need...

I added an IO::-style layer, so this now runs: ```ruby #!/usr/bin/ruby require 'vips' source = File.open ARGV[0], "rb" input_stream = Vips::Streamiu.new input_stream.on_read { |length| source.read length } input_stream.on_seek { |offset,...

I build on mac by installing their vips to pull in all the dependencies, then removing it again and doing the usual `git clone && ./autogen.sh --prefix=/Users/john/vips && make &&...

Hello, I just stumbled across this interesting issue. That libvips blogpost about thumbnailing has been updated and worked up into a chapter in the main docs: https://libvips.github.io/libvips/API/current/Using-vipsthumbnail.md.html tldr: it recommends:...

Hello again, a quick update:. First (trivially), `rotate` is now the default, so there's no need to give that as an arg to `thumbnail` (the option is still there, it...

Hi @jrochkind, it's here now: https://www.libvips.org/API/current/Using-vipsthumbnail.md.html Though I've not got around to updating the colourspace advice, unfortunately.

@Aminelahlou exactly, recomb will do any affine transform on a colourspace.

Full read and write of AVIF works fine, and has done since 2019. It's out of the box on at least Debian, Homebrew and Windows, on other platforms you might...