Results 1568 comments of John Cupitt

Hi @etherbob, This is expected behaviour. libvips uses corner convention by default for affine transforms, so a 90 degree rotate will translate the image by 1 pixel. Your best fix...

I think flipping between rotate methods depending on the argument value would produce some unfortunate transition effects. I think the best solution is to have two separate methods: one to...

Yes, true :( I wanted to avoid copy-pasting it into the GLib, GModule and Vips modules. Really it ought to be inside ffi (i saw your PR, nice!).

Hi Alec, you'd need to ask image_processing (it's not my project), but at the CLI it'd be: ``` $ vips find_trim bottle.png 95 20 61 233 ``` Or in Ruby:...

Oh heh the github downsizer as made the 1px box invisible. Click on the image to see the rect.

.... sorry, last post, as I recall image_processing lets you drop down to ruby-vips as part of the chain of operations, so you'd need to add a line like: ```...

Hi @demitrious-tom, The `bitdepth` option was added in libvips 8.10, so I guess you have one from before that. Though I think you want a different option --- you want...

You can also load base64 directly into ruby-vips, in case you hadn't seen the option.

Sorry, I keep adding more things. You can get the version of the underlying libvips binary like this: ``` $ irb irb(main):001:0> require 'vips' => true irb(main):002:0> Vips::VERSION => "2.1.3"...

You need to create a custom source for base64. It's just a couple of lines: https://www.libvips.org/2019/11/29/True-streaming-for-libvips.html Those examples use py, but ruby is almost the same, though it uses blocks:...