ruby-vips
ruby-vips copied to clipboard
Ruby extension for the libvips image processing library.
I need to rotate this image around the center of the circle with known coordinates  ``` [x,y,angle] [398, 290, -2.4995608216061647] ``` ```ruby img.rotate(angle * 180 / Math::PI, idx: x,...
### Discussed in https://github.com/libvips/ruby-vips/discussions/358 Originally posted by **tonymarklove** January 25, 2023 After digging into the `ruby-vips` code I can't see anywhere that `Vips::ForeignPngFilter` is defined. After some investigation it appears...
**Describe the bug** When running tests of version 2.1.4 in Debian we get the following failure: ``` 1) Vips::SourceCustom can write an image to a user output stream Failure/Error: expect(image.avg).to...
```ruby Vips::Image.new_from_buffer("GIF89a\x01\x00\x01\x00\x00\xff\x00,\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x00;", "").to_enum ``` FFI::NullPointerError: invalid memory read at address=0x0000000000000000 MacOS, ruby 2.3.8, ruby-vips-2.1.4, vips-8.11.3 I suppose I took it from here http://probablyprogramming.com/2009/03/15/the-tiniest-gif-ever
**Describe the bug** When I try to perform a composite process with multiply, for some reason the overlay image gets a gray border. This is only happening with the multiply...
Having interesting errors both on Mac and Ubuntu (Docker) while adding text on top of an image using ruby-vips. ``` text = Vips::Image.text( text_content, width: width, height: height, align: vips_align,...
Hi, this PR adds support for [vips_image_get_data](https://www.libvips.org/API/current/libvips-header.html#vips-image-get-data) to Ruby with a new `data_ptr` method that returns a sized `FFI::Pointer`. This provides similar functionality as `write_to_memory` but without additional copying. With...
**Describe the bug** I have seen several times following segfault error from Ruby on Rails app but not often like once a week, but quite not sure how it happens...
Reading image metadata is inconvenient because the return format looks like a result of `inspect` call: ``` ruby image = Vips::Image.new_from_file('file.png') image.get "exif-ifd3-GPSTimeStamp" # => "13/1 57/1 0/1 (13:57:00.00, Rational,...