Skip to content

Commit

Permalink
Trying a CI test against two different vips versions
Browse files Browse the repository at this point in the history
  • Loading branch information
elohanlon committed Dec 19, 2023
1 parent 8756773 commit 3c02906
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
strategy:
matrix:
ruby-version: ['2.7.5', '3.0.3', '3.1.3', '3.2.2']
vips-version: ['8.14.5', '8.15.0']
env:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true

Expand Down Expand Up @@ -46,9 +47,9 @@ jobs:
# Download and compile selected version of vips
cd /tmp
wget https://github.com/libvips/libvips/releases/download/v8.15.0/vips-8.15.0.tar.xz
tar xf vips-8.15.0.tar.xz
cd vips-8.15.0
wget https://github.com/libvips/libvips/releases/download/v${{ matrix.vips-version }}/vips-${{ matrix.vips-version }}.tar.xz
tar xf vips-${{ matrix.vips-version }}.tar.xz
cd vips-${{ matrix.vips-version }}
meson build --libdir=lib --buildtype=release -Dintrospection=disabled
cd build
ninja
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# imogen
derivative generation and smart square thumbnail via libvips.

NOTE: imogen >= 0.4.0 requires libvips >= 8.15 (to support the vips `revalidate` feature when reading in an image).

## Scale and re-format an image
```ruby
Imogen.with_image('example.tiff') do |img|
Expand All @@ -11,13 +9,14 @@ NOTE: imogen >= 0.4.0 requires libvips >= 8.15 (to support the vips `revalidate`
end
```

## Scale and re-format an image, skipping any vips caching and re-reading in the source image
## Scale and re-format an image, using the revalidate option to skip any vips caching and re-reading in the source image
```ruby
Imogen.with_image('example.tiff', { revalidate: true }) do |img|
# img is a FreeImage::BitMap
Imogen::Scaled.convert(img, 'example-150.jpg', 150)
end
```
Note: The above usage requires libvips >= 8.15

## Perform "interesting region" detection
```ruby
Expand Down

0 comments on commit 3c02906

Please sign in to comment.