ruby-vips 2.0.13 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +42 -0
- data/.github/workflows/test.yml +80 -0
- data/.standard.yml +17 -0
- data/.yardopts +0 -1
- data/CHANGELOG.md +44 -0
- data/Gemfile +3 -1
- data/README.md +45 -47
- data/Rakefile +13 -15
- data/TODO +19 -10
- data/VERSION +1 -1
- data/example/annotate.rb +7 -7
- data/example/connection.rb +26 -0
- data/example/daltonize8.rb +27 -29
- data/example/draw_lines.rb +30 -0
- data/example/example1.rb +5 -6
- data/example/example2.rb +11 -11
- data/example/example3.rb +9 -9
- data/example/example4.rb +8 -8
- data/example/example5.rb +8 -9
- data/example/inheritance_with_refcount.rb +203 -221
- data/example/progress.rb +30 -0
- data/example/thumb.rb +12 -14
- data/example/trim8.rb +7 -7
- data/example/watermark.rb +15 -36
- data/example/wobble.rb +25 -25
- data/lib/ruby-vips.rb +1 -1
- data/lib/vips.rb +473 -338
- data/lib/vips/access.rb +9 -9
- data/lib/vips/align.rb +7 -8
- data/lib/vips/angle.rb +8 -9
- data/lib/vips/angle45.rb +12 -13
- data/lib/vips/bandformat.rb +16 -18
- data/lib/vips/blend_mode.rb +36 -0
- data/lib/vips/coding.rb +11 -12
- data/lib/vips/compass_direction.rb +13 -14
- data/lib/vips/connection.rb +46 -0
- data/lib/vips/direction.rb +7 -8
- data/lib/vips/extend.rb +13 -14
- data/lib/vips/gobject.rb +111 -100
- data/lib/vips/gvalue.rb +243 -237
- data/lib/vips/image.rb +1501 -1338
- data/lib/vips/interesting.rb +10 -11
- data/lib/vips/interpolate.rb +50 -54
- data/lib/vips/interpretation.rb +25 -26
- data/lib/vips/kernel.rb +18 -19
- data/lib/vips/methods.rb +929 -309
- data/lib/vips/mutableimage.rb +154 -0
- data/lib/vips/object.rb +318 -208
- data/lib/vips/operation.rb +467 -320
- data/lib/vips/operationboolean.rb +10 -11
- data/lib/vips/operationcomplex.rb +8 -9
- data/lib/vips/operationcomplex2.rb +6 -7
- data/lib/vips/operationcomplexget.rb +7 -8
- data/lib/vips/operationmath.rb +14 -15
- data/lib/vips/operationmath2.rb +6 -7
- data/lib/vips/operationrelational.rb +11 -12
- data/lib/vips/operationround.rb +7 -8
- data/lib/vips/region.rb +73 -0
- data/lib/vips/size.rb +9 -10
- data/lib/vips/source.rb +88 -0
- data/lib/vips/sourcecustom.rb +89 -0
- data/lib/vips/target.rb +86 -0
- data/lib/vips/targetcustom.rb +77 -0
- data/lib/vips/version.rb +1 -2
- data/ruby-vips.gemspec +29 -20
- metadata +51 -40
- data/.travis.yml +0 -55
- data/install-vips.sh +0 -26
data/.travis.yml
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
dist: trusty
|
2
|
-
sudo: false
|
3
|
-
|
4
|
-
env:
|
5
|
-
global:
|
6
|
-
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
7
|
-
- VIPS_VERSION_MAJOR=8
|
8
|
-
- VIPS_VERSION_MINOR=6
|
9
|
-
- VIPS_VERSION_MICRO=4
|
10
|
-
- PATH=$HOME/vips/bin:$PATH
|
11
|
-
- LD_LIBRARY_PATH=$HOME/vips/lib:$LD_LIBRARY_PATH
|
12
|
-
- PKG_CONFIG_PATH=$HOME/vips/lib/pkgconfig:$PKG_CONFIG_PATH
|
13
|
-
|
14
|
-
addons:
|
15
|
-
apt:
|
16
|
-
packages:
|
17
|
-
- libexpat1-dev
|
18
|
-
- gettext
|
19
|
-
- libglib2.0-dev
|
20
|
-
- liborc-0.4-dev
|
21
|
-
- libfftw3-dev
|
22
|
-
- liblcms2-dev
|
23
|
-
- libmagickwand-dev
|
24
|
-
- libopenexr-dev
|
25
|
-
- libcfitsio3-dev
|
26
|
-
- libgif-dev
|
27
|
-
- libgsf-1-dev
|
28
|
-
- libmatio-dev
|
29
|
-
- libopenslide-dev
|
30
|
-
- libpango1.0-dev
|
31
|
-
- libpoppler-glib-dev
|
32
|
-
- librsvg2-dev
|
33
|
-
- libwebp-dev
|
34
|
-
|
35
|
-
cache:
|
36
|
-
directories:
|
37
|
-
- $HOME/vips
|
38
|
-
|
39
|
-
language: ruby
|
40
|
-
rvm:
|
41
|
-
- 2.0
|
42
|
-
- 2.1
|
43
|
-
- 2.2
|
44
|
-
- 2.3
|
45
|
-
- 2.4
|
46
|
-
- 2.5
|
47
|
-
|
48
|
-
script: "bundle exec rake"
|
49
|
-
|
50
|
-
gemfile:
|
51
|
-
- Gemfile
|
52
|
-
|
53
|
-
before_install:
|
54
|
-
- uname -a
|
55
|
-
- bash install-vips.sh
|
data/install-vips.sh
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
vips_site=https://github.com/jcupitt/libvips/releases/download
|
4
|
-
version=$VIPS_VERSION_MAJOR.$VIPS_VERSION_MINOR.$VIPS_VERSION_MICRO
|
5
|
-
|
6
|
-
set -e
|
7
|
-
|
8
|
-
# do we already have the correct vips built? early exit if yes
|
9
|
-
# we could check the configure params as well I guess
|
10
|
-
if [ -d "$HOME/vips/bin" ]; then
|
11
|
-
installed_version=$($HOME/vips/bin/vips --version)
|
12
|
-
escaped_version="$VIPS_VERSION_MAJOR\.$VIPS_VERSION_MINOR\.$VIPS_VERSION_MICRO"
|
13
|
-
echo "Need vips-$version"
|
14
|
-
echo "Found $installed_version"
|
15
|
-
if [[ "$installed_version" =~ ^vips-$escaped_version ]]; then
|
16
|
-
echo "Using cached directory"
|
17
|
-
exit 0
|
18
|
-
fi
|
19
|
-
fi
|
20
|
-
|
21
|
-
rm -rf $HOME/vips
|
22
|
-
wget $vips_site/v$version/vips-$version.tar.gz
|
23
|
-
tar xf vips-$version.tar.gz
|
24
|
-
cd vips-$version
|
25
|
-
CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 ./configure --prefix=$HOME/vips $*
|
26
|
-
make && make install
|