rmagick 6.2.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/Gemfile +3 -4
- data/README.md +49 -70
- data/Rakefile +1 -8
- data/ext/RMagick/extconf.rb +10 -8
- data/ext/RMagick/rmagick.cpp +6 -7
- data/ext/RMagick/rmagick.h +5 -18
- data/ext/RMagick/rmdraw.cpp +6 -7
- data/ext/RMagick/rmenum.cpp +5 -6
- data/ext/RMagick/rmfill.cpp +6 -8
- data/ext/RMagick/rmilist.cpp +6 -7
- data/ext/RMagick/rmimage.cpp +55 -109
- data/ext/RMagick/rminfo.cpp +6 -8
- data/ext/RMagick/rmkinfo.cpp +8 -7
- data/ext/RMagick/rmmain.cpp +7 -23
- data/ext/RMagick/rmmontage.cpp +6 -8
- data/ext/RMagick/rmpixel.cpp +6 -7
- data/ext/RMagick/rmstruct.cpp +8 -12
- data/ext/RMagick/rmutil.cpp +6 -27
- data/lib/rmagick/version.rb +4 -3
- data/lib/rmagick_internal.rb +30 -37
- data/lib/rvg/clippath.rb +3 -4
- data/lib/rvg/container.rb +3 -4
- data/lib/rvg/deep_equal.rb +3 -0
- data/lib/rvg/describable.rb +4 -5
- data/lib/rvg/embellishable.rb +7 -8
- data/lib/rvg/misc.rb +13 -12
- data/lib/rvg/paint.rb +3 -4
- data/lib/rvg/pathdata.rb +3 -4
- data/lib/rvg/rvg.rb +3 -29
- data/lib/rvg/stretchable.rb +4 -5
- data/lib/rvg/stylable.rb +4 -5
- data/lib/rvg/text.rb +9 -10
- data/lib/rvg/transformable.rb +3 -4
- data/lib/rvg/units.rb +3 -2
- data/rmagick.gemspec +6 -4
- data/sig/rmagick.rbs +2 -1
- metadata +4 -19
- data/.devcontainer/Dockerfile +0 -14
- data/.devcontainer/ImageMagick6/devcontainer.json +0 -11
- data/.devcontainer/devcontainer.json +0 -11
- data/.devcontainer/setup-repo.sh +0 -10
- data/.devcontainer/setup-user.sh +0 -45
- data/.editorconfig +0 -17
- data/.github/ISSUE_TEMPLATE/report.yml +0 -40
- data/.github/ISSUE_TEMPLATE.md +0 -17
- data/.github/workflows/ci.yml +0 -264
- data/.gitignore +0 -29
- data/.rspec +0 -2
- data/.rubocop.yml +0 -68
- data/.rubocop_todo.yml +0 -596
- data/before_install_linux.sh +0 -61
- data/before_install_osx.sh +0 -60
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b8378b6521fc857bfee81cb0b0d234cbacd0ea753d2f9be41180f1d4f833086
|
|
4
|
+
data.tar.gz: 6492cec6f6802500827e3e0d3b0c2c30b5ab7c000b3c4da68cf5af5dd3b856c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70fdb4d672961ba027ec56396813d81aa7101e32d3d0b73a42e28e12b779777e27a63e061d2fdcb82ee5ada9ceede1d3cf1f4124b51a62962e6c1eef656a3f66
|
|
7
|
+
data.tar.gz: b436f377627611cab9ca86f0b59e2fc8a9a9e8cbd3071fa06036ac841fe136717430851f2043aeaf31175835afab285c5dd2cd3efd5f8de51a8f58cdb38bb595
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
|
6
|
+
## RMagick 7.0.0
|
|
7
|
+
|
|
8
|
+
Breaking Changes
|
|
9
|
+
|
|
10
|
+
* Drop support for Ruby 3.1 and older (#1749)
|
|
11
|
+
* Drop support for old ImageMagick (6.8.x and 7.0.x) (#1748)
|
|
12
|
+
|
|
13
|
+
Improvements
|
|
14
|
+
|
|
15
|
+
* Modernize argument parsing using keyword arguments API (#1754)
|
|
16
|
+
* Fix floating-point truncation in Magick::TypeMetric coordinates (#1765)
|
|
17
|
+
* Fix floating-point truncation in Magick::ChromaticityInfo coordinates (#1241)
|
|
18
|
+
|
|
19
|
+
## RMagick 6.3.0
|
|
20
|
+
|
|
21
|
+
> [!IMPORTANT]
|
|
22
|
+
> This release is the final minor update for the RMagick 6 series.
|
|
23
|
+
>
|
|
24
|
+
> The upcoming RMagick 7.0 will require:
|
|
25
|
+
> * Ruby 3.2 or later
|
|
26
|
+
> * ImageMagick 6.9 or later (for ImageMagick 6 users)
|
|
27
|
+
> * ImageMagick 7.1 or later (for ImageMagick 7 users)
|
|
28
|
+
|
|
29
|
+
Enhancements
|
|
30
|
+
|
|
31
|
+
- Add deprecation warnings for upcoming RMagick 7.0 (#1740)
|
|
32
|
+
|
|
6
33
|
## RMagick 6.2.0
|
|
7
34
|
|
|
8
35
|
Improvements
|
data/Gemfile
CHANGED
|
@@ -16,9 +16,8 @@ gem 'rubocop', '~> 1.63'
|
|
|
16
16
|
gem 'rubocop-performance', '~> 1.21'
|
|
17
17
|
gem 'rubocop-rspec', '~> 3.5'
|
|
18
18
|
|
|
19
|
-
gem '
|
|
20
|
-
|
|
21
|
-
gem '
|
|
22
|
-
gem 'steep', '~> 1.6'
|
|
19
|
+
gem 'rbs', '~> 4.0'
|
|
20
|
+
gem 'rubocop-on-rbs', '~> 2.0'
|
|
21
|
+
gem 'steep', '~> 2.0'
|
|
23
22
|
|
|
24
23
|
gem 'ruby_memcheck', '~> 3.0' if RUBY_PLATFORM.include?('linux')
|
data/README.md
CHANGED
|
@@ -7,18 +7,18 @@ RMagick
|
|
|
7
7
|
Table of Contents
|
|
8
8
|
-----------------
|
|
9
9
|
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
10
|
+
- [Introduction](#introduction)
|
|
11
|
+
- [Prerequisites](#prerequisites)
|
|
12
|
+
- [Installing RMagick](#installing-rmagick)
|
|
13
|
+
- [Using RMagick](#using-rmagick)
|
|
14
|
+
- [Things that can go wrong](#things-that-can-go-wrong)
|
|
15
|
+
- [Upgrading](#upgrading)
|
|
16
|
+
- [More samples](#more-samples)
|
|
17
|
+
- [Reporting Bugs](#reporting-bugs)
|
|
18
|
+
- [Development Setup](#development-setup)
|
|
19
|
+
- [Credits](#credits)
|
|
20
|
+
- [License](#license)
|
|
21
|
+
- [Releasing](#releasing)
|
|
22
22
|
|
|
23
23
|
Introduction
|
|
24
24
|
------------
|
|
@@ -42,31 +42,31 @@ These prerequisites are required for the latest version of RMagick.
|
|
|
42
42
|
- RMagick 5.4.0 or later requires a C++ compiler.
|
|
43
43
|
|
|
44
44
|
**Ruby**
|
|
45
|
-
- Version 3.
|
|
45
|
+
- Version 3.2 or later.
|
|
46
46
|
|
|
47
47
|
You can get Ruby from <https://www.ruby-lang.org>.
|
|
48
48
|
|
|
49
|
-
Ruby must be able to build C-Extensions (e.g. MRI,
|
|
49
|
+
Ruby must be able to build C-Extensions (e.g. MRI, not JRuby)
|
|
50
50
|
|
|
51
51
|
**ImageMagick**
|
|
52
|
-
- Version 6.
|
|
53
|
-
- Version 7.
|
|
52
|
+
- Version 6.9 or later (for ImageMagick 6 users).
|
|
53
|
+
- Version 7.1 or later (for ImageMagick 7 users).
|
|
54
54
|
|
|
55
55
|
You can get ImageMagick from <https://imagemagick.org>.
|
|
56
56
|
|
|
57
57
|
### Linux
|
|
58
|
-
####
|
|
59
|
-
On
|
|
58
|
+
#### Debian-based
|
|
59
|
+
On Debian-based, you can run:
|
|
60
60
|
|
|
61
61
|
```sh
|
|
62
|
-
|
|
62
|
+
apt install libmagickwand-dev
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
####
|
|
66
|
-
On
|
|
65
|
+
#### RHEL-compatible
|
|
66
|
+
On RHEL-compatible, you can run:
|
|
67
67
|
|
|
68
68
|
```sh
|
|
69
|
-
|
|
69
|
+
dnf install ImageMagick-devel
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
#### Arch Linux
|
|
@@ -176,9 +176,9 @@ ridk exec gem install rmagick
|
|
|
176
176
|
|
|
177
177
|
### Versioning
|
|
178
178
|
|
|
179
|
-
RMagick is versioned according to Semantic Versioning.
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
RMagick is versioned according to Semantic Versioning.
|
|
180
|
+
Versions >= 7 work on Ruby >= 3.2 only.
|
|
181
|
+
For older Ruby versions, use RMagick `~> 6.0`.
|
|
182
182
|
|
|
183
183
|
Using RMagick
|
|
184
184
|
-------------
|
|
@@ -261,69 +261,52 @@ via the bug tracker on the [RMagick issues page][issues].
|
|
|
261
261
|
However, We can't help with Ruby installation and configuration or ImageMagick
|
|
262
262
|
installation and configuration. Information about reporting problems and
|
|
263
263
|
getting help for ImageMagick is available at the [ImageMagick
|
|
264
|
-
website][imagemagick] or the [ImageMagick
|
|
264
|
+
website][imagemagick] or the [ImageMagick Discussions][imagemagick-discussions].
|
|
265
265
|
|
|
266
266
|
Development Setup
|
|
267
267
|
-----------------
|
|
268
268
|
|
|
269
269
|
In order to minimize issues on your local machine, we recommend that you make
|
|
270
|
-
use of
|
|
270
|
+
use of [Dev Containers](https://containers.dev/). This provides a consistent, pre-configured development environment using Docker.
|
|
271
271
|
|
|
272
272
|
Steps to get up and running with a passing build are as follows:
|
|
273
273
|
|
|
274
|
-
### 1)
|
|
274
|
+
### 1) Set up the prerequisites
|
|
275
275
|
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
To use Dev Containers, you will need to install the following tools on your machine:
|
|
277
|
+
* [Docker Desktop](https://www.docker.com/products/docker-desktop/) (or Docker Engine)
|
|
278
|
+
* [Visual Studio Code](https://code.visualstudio.com/)
|
|
279
|
+
* [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) for VS Code
|
|
278
280
|
|
|
279
|
-
|
|
280
|
-
git clone https://github.com/tjschuck/rake-compiler-dev-box.git
|
|
281
|
-
cd rake-compiler-dev-box
|
|
282
|
-
vagrant up
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
This last part will probably take a while as it has to download an Ubuntu image
|
|
286
|
-
and configure it. If there is an error during this process, you may need to
|
|
287
|
-
reboot your computer and enable virtualization in your BIOS settings.
|
|
288
|
-
|
|
289
|
-
### 2) clone RMagick and log in to the vagrant box
|
|
281
|
+
### 2) Clone RMagick and open the container
|
|
290
282
|
|
|
291
|
-
|
|
283
|
+
Clone the repository to your local machine and open it in VS Code:
|
|
292
284
|
|
|
293
285
|
```sh
|
|
294
286
|
git clone https://github.com/rmagick/rmagick.git # or your fork
|
|
295
|
-
|
|
287
|
+
cd rmagick
|
|
288
|
+
code .
|
|
296
289
|
```
|
|
297
290
|
|
|
298
|
-
|
|
291
|
+
Once VS Code opens, it should detect the `.devcontainer` configuration and prompt you to "Reopen in Container".
|
|
299
292
|
|
|
300
|
-
|
|
301
|
-
cd /vagrant/rmagick
|
|
302
|
-
export IMAGEMAGICK_VERSION=6.8.9-10
|
|
303
|
-
bash ./before_install_linux.sh
|
|
304
|
-
```
|
|
293
|
+
During this process, VS Code will ask you to select a `devcontainer.json` configuration. You can choose the environment you want to develop and test against:
|
|
305
294
|
|
|
306
|
-
|
|
295
|
+
* ImageMagick 7 (`.devcontainer/devcontainer.json`) - Recommended for the latest development.
|
|
296
|
+
* ImageMagick 6 (`.devcontainer/ImageMagick6/devcontainer.json`) - For testing against the legacy ImageMagick 6 API.
|
|
307
297
|
|
|
308
|
-
|
|
298
|
+
Select the one you need, and VS Code will automatically build the corresponding Docker image and start your isolated development environment. This may take a few minutes the first time.
|
|
309
299
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
This compiles the RMagick extensions and runs the tests. If all goes well
|
|
315
|
-
you'll see a lot of output, eventually ending in something like:
|
|
316
|
-
|
|
317
|
-
```sh
|
|
318
|
-
Finished tests in 35.865734s, 11.3758 tests/s, 6560.3007 assertions/s.
|
|
300
|
+
### 3) Build RMagick
|
|
301
|
+
Once the container is running and the ImageMagick setup is complete, open a new terminal inside VS Code.
|
|
302
|
+
Install the Ruby dependencies and compile the RMagick extension:
|
|
319
303
|
|
|
320
|
-
|
|
304
|
+
```
|
|
305
|
+
$ bundle install
|
|
306
|
+
$ bundle exec rake
|
|
321
307
|
```
|
|
322
308
|
|
|
323
|
-
And you're all set! The
|
|
324
|
-
Vagrant session is the same as the one in the `rake-compiler-dev-box` directory
|
|
325
|
-
on your machine. You can make changes locally and run tests within your `ssh`
|
|
326
|
-
session.
|
|
309
|
+
And you're all set! The codebase on your local machine is automatically synced with the container. You can edit files using your local VS Code, and run tests seamlessly within the integrated container terminal.
|
|
327
310
|
|
|
328
311
|
Credits
|
|
329
312
|
-------
|
|
@@ -341,8 +324,6 @@ License
|
|
|
341
324
|
Releasing
|
|
342
325
|
---------
|
|
343
326
|
|
|
344
|
-
See <https://github.com/rmagick/rmagick/wiki/Release-Process>
|
|
345
|
-
|
|
346
327
|
1. Update ChangeLog
|
|
347
328
|
2. Edit `lib/rmagick/version.rb`
|
|
348
329
|
3. Are the tests passing? Run `rake` again just to be sure.
|
|
@@ -352,6 +333,4 @@ See <https://github.com/rmagick/rmagick/wiki/Release-Process>
|
|
|
352
333
|
[libmagick-faq]: https://web.archive.org/web/20140512193354/https://rmagick.rubyforge.org/install-faq.html#libmagick
|
|
353
334
|
[faq]: https://web.archive.org/web/20140512193354/https://rmagick.rubyforge.org/install-faq.html
|
|
354
335
|
[imagemagick]: https://imagemagick.org
|
|
355
|
-
[imagemagick-
|
|
356
|
-
[dev-box]: https://github.com/tjschuck/rake-compiler-dev-box
|
|
357
|
-
[vagrant]: https://www.vagrantup.com/
|
|
336
|
+
[imagemagick-discussions]: https://github.com/ImageMagick/ImageMagick/discussions
|
data/Rakefile
CHANGED
|
@@ -194,11 +194,4 @@ if RUBY_PLATFORM.include?('linux')
|
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
task spec: :compile
|
|
197
|
-
|
|
198
|
-
if ENV['STYLE_CHECKS']
|
|
199
|
-
require 'rubocop/rake_task'
|
|
200
|
-
RuboCop::RakeTask.new
|
|
201
|
-
task default: %i[rubocop]
|
|
202
|
-
else
|
|
203
|
-
task default: %i[spec]
|
|
204
|
-
end
|
|
197
|
+
task default: :spec
|
data/ext/RMagick/extconf.rb
CHANGED
|
@@ -11,7 +11,7 @@ module RMagick
|
|
|
11
11
|
RMAGICK_VERS = ::Magick::VERSION
|
|
12
12
|
MIN_RUBY_VERS = ::Magick::MIN_RUBY_VERSION
|
|
13
13
|
|
|
14
|
-
# ImageMagick 6
|
|
14
|
+
# ImageMagick 6 packages
|
|
15
15
|
IM6_PACKAGES = %w[
|
|
16
16
|
ImageMagick-6.Q64HDRI
|
|
17
17
|
ImageMagick-6.Q32HDRI
|
|
@@ -259,16 +259,22 @@ module RMagick
|
|
|
259
259
|
|
|
260
260
|
# Ensure minimum ImageMagick version
|
|
261
261
|
# Check minimum ImageMagick version if possible
|
|
262
|
-
checking_for("outdated ImageMagick version
|
|
262
|
+
checking_for("outdated ImageMagick version") do
|
|
263
263
|
Logging.message("Detected ImageMagick version: #{$magick_version}\n")
|
|
264
264
|
|
|
265
|
-
|
|
265
|
+
required_version = im_version_at_least?('7.0.0') ? Magick::MIN_IM7_VERSION : Magick::MIN_IM6_VERSION
|
|
266
|
+
|
|
267
|
+
if Gem::Version.new($magick_version) < Gem::Version.new(required_version)
|
|
268
|
+
exit_failure "Can't install RMagick #{RMAGICK_VERS}. You must have ImageMagick #{required_version} or later.\n"
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
false
|
|
266
272
|
end
|
|
267
273
|
end
|
|
268
274
|
|
|
269
275
|
def create_header_file
|
|
270
276
|
ruby_api = [
|
|
271
|
-
'rb_io_path' # Ruby 3.
|
|
277
|
+
'rb_io_path' # Ruby 3.3.0
|
|
272
278
|
]
|
|
273
279
|
memory_api = %w[
|
|
274
280
|
posix_memalign
|
|
@@ -277,7 +283,6 @@ module RMagick
|
|
|
277
283
|
_aligned_msize
|
|
278
284
|
]
|
|
279
285
|
imagemagick_api = [
|
|
280
|
-
'GetImageChannelEntropy', # 6.9.0-0
|
|
281
286
|
'SetImageGray', # 6.9.1-10
|
|
282
287
|
'SetMagickAlignedMemoryMethods' # 7.0.9-0
|
|
283
288
|
]
|
|
@@ -291,11 +296,8 @@ module RMagick
|
|
|
291
296
|
$defs.push("-DRUBY_VERSION_STRING=\"ruby #{RUBY_VERSION}\"")
|
|
292
297
|
$defs.push("-DRMAGICK_VERSION_STRING=\"RMagick #{RMAGICK_VERS}\"")
|
|
293
298
|
|
|
294
|
-
$defs.push('-DIMAGEMAGICK_GREATER_THAN_EQUAL_6_9_0=1') if im_version_at_least?('6.9.0')
|
|
295
299
|
$defs.push('-DIMAGEMAGICK_GREATER_THAN_EQUAL_6_9_10=1') if im_version_at_least?('6.9.10')
|
|
296
300
|
$defs.push('-DIMAGEMAGICK_7=1') if im_version_at_least?('7.0.0')
|
|
297
|
-
$defs.push('-DIMAGEMAGICK_GREATER_THAN_EQUAL_7_0_8=1') if im_version_at_least?('7.0.8')
|
|
298
|
-
$defs.push('-DIMAGEMAGICK_GREATER_THAN_EQUAL_7_0_10=1') if im_version_at_least?('7.0.10')
|
|
299
301
|
$defs.push('-DIMAGEMAGICK_GREATER_THAN_EQUAL_7_1_2=1') if im_version_at_least?('7.1.2')
|
|
300
302
|
|
|
301
303
|
create_header
|
data/ext/RMagick/rmagick.cpp
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Copyright © 2002 - 2009 by Timothy P. Hunter
|
|
1
|
+
/**
|
|
2
|
+
* Magick module methods.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
4
|
+
* Copyright (c) 2002 - 2009 Timothy P. Hunter
|
|
5
|
+
* Copyright (c) 2009 - Benjamin Thomas and Omer Bar-or
|
|
6
|
+
* Copyright (c) 2009 - RMagick contributors
|
|
7
7
|
*
|
|
8
8
|
* @file rmagick.cpp
|
|
9
|
-
* @version $Id: rmagick.cpp,v 1.4 2009/12/20 02:33:32 baror Exp $
|
|
10
9
|
* @author Tim Hunter
|
|
11
|
-
|
|
10
|
+
*/
|
|
12
11
|
|
|
13
12
|
#include "rmagick.h"
|
|
14
13
|
|
data/ext/RMagick/rmagick.h
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
2
|
* RMagick declarations and definitions.
|
|
3
3
|
*
|
|
4
|
-
* Copyright
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Copyright (c) 2002 - 2009 Timothy P. Hunter
|
|
5
|
+
* Copyright (c) 2009 - Benjamin Thomas and Omer Bar-or
|
|
6
|
+
* Copyright (c) 2009 - RMagick contributors
|
|
7
7
|
*
|
|
8
8
|
* @file rmagick.h
|
|
9
|
-
* @version $Id: rmagick.h,v 1.282 2010/02/16 06:50:28 baror Exp $
|
|
10
9
|
* @author Tim Hunter
|
|
11
|
-
|
|
10
|
+
*/
|
|
12
11
|
|
|
13
12
|
#ifndef _RMAGICK_H_
|
|
14
13
|
#define _RMAGICK_H_
|
|
@@ -837,11 +836,7 @@ extern VALUE Image_compare_channel(int, VALUE *, VALUE);
|
|
|
837
836
|
extern VALUE Image_channel_depth(int, VALUE *, VALUE);
|
|
838
837
|
extern VALUE Image_channel_extrema(int, VALUE *, VALUE);
|
|
839
838
|
extern VALUE Image_channel_mean(int, VALUE *, VALUE);
|
|
840
|
-
#if defined(HAVE_GETIMAGECHANNELENTROPY) || defined(IMAGEMAGICK_7)
|
|
841
839
|
extern VALUE Image_channel_entropy(int, VALUE *, VALUE);
|
|
842
|
-
#else
|
|
843
|
-
extern VALUE Image_channel_entropy(int, VALUE *, VALUE) ATTRIBUTE_NORETURN;
|
|
844
|
-
#endif
|
|
845
840
|
extern VALUE Image_charcoal(int, VALUE *, VALUE);
|
|
846
841
|
extern VALUE Image_chop(VALUE, VALUE, VALUE, VALUE, VALUE);
|
|
847
842
|
extern VALUE Image_clone(VALUE);
|
|
@@ -1177,7 +1172,6 @@ extern double rm_str_to_pct(VALUE, bool);
|
|
|
1177
1172
|
extern VALUE rm_define_enum_type(const char *);
|
|
1178
1173
|
extern void rm_write_temp_image(Image *, char *, size_t);
|
|
1179
1174
|
extern void rm_delete_temp_image(char *);
|
|
1180
|
-
extern void rm_not_implemented(void) ATTRIBUTE_NORETURN;
|
|
1181
1175
|
extern void rm_attr_write(VALUE, VALUE);
|
|
1182
1176
|
extern const char *rm_get_property(const Image *, const char *);
|
|
1183
1177
|
extern MagickBooleanType rm_set_property(Image *, const char *, const char *);
|
|
@@ -1218,13 +1212,6 @@ extern VALUE rm_io_path(VALUE);
|
|
|
1218
1212
|
extern void rm_check_image_exception(Image *, ErrorRetention);
|
|
1219
1213
|
#endif
|
|
1220
1214
|
|
|
1221
|
-
#if !defined(IMAGEMAGICK_GREATER_THAN_EQUAL_6_9_0)
|
|
1222
|
-
/* UnityAddKernelInfo() was private function until IM 6.9 */
|
|
1223
|
-
MagickExport void UnityAddKernelInfo(KernelInfo *kernel, const double scale);
|
|
1224
|
-
/* ScaleKernelInfo() was private function until IM 6.9 */
|
|
1225
|
-
MagickExport void ScaleKernelInfo(KernelInfo *kernel, const double scaling_factor, const GeometryFlags normalize_flags);
|
|
1226
|
-
#endif
|
|
1227
|
-
|
|
1228
1215
|
#define RESCUE_FUNC(func) (VALUE(*)(VALUE))(func)
|
|
1229
1216
|
#define RESCUE_EXCEPTION_HANDLER_FUNC(func) (VALUE(*)(VALUE, VALUE))(func)
|
|
1230
1217
|
|
data/ext/RMagick/rmdraw.cpp
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Copyright © 2002 - 2009 by Timothy P. Hunter
|
|
1
|
+
/**
|
|
2
|
+
* Draw class methods.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
4
|
+
* Copyright (c) 2002 - 2009 Timothy P. Hunter
|
|
5
|
+
* Copyright (c) 2009 - Benjamin Thomas and Omer Bar-or
|
|
6
|
+
* Copyright (c) 2009 - RMagick contributors
|
|
7
7
|
*
|
|
8
8
|
* @file rmdraw.cpp
|
|
9
|
-
* @version $Id: rmdraw.cpp,v 1.83 2009/12/20 02:33:33 baror Exp $
|
|
10
9
|
* @author Tim Hunter
|
|
11
|
-
|
|
10
|
+
*/
|
|
12
11
|
|
|
13
12
|
#include "rmagick.h"
|
|
14
13
|
#include "float.h"
|
data/ext/RMagick/rmenum.cpp
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
2
|
* Enumeration methods.
|
|
3
3
|
*
|
|
4
|
-
* Copyright
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Copyright (c) 2002 - 2009 Timothy P. Hunter
|
|
5
|
+
* Copyright (c) 2009 - Benjamin Thomas and Omer Bar-or
|
|
6
|
+
* Copyright (c) 2009 - RMagick contributors
|
|
7
7
|
*
|
|
8
8
|
* @file rmenum.cpp
|
|
9
|
-
* @version $Id: rmenum.cpp,v 1.9 2009/12/20 02:33:33 baror Exp $
|
|
10
9
|
* @author Tim Hunter
|
|
11
|
-
|
|
10
|
+
*/
|
|
12
11
|
|
|
13
12
|
#include "rmagick.h"
|
|
14
13
|
|
data/ext/RMagick/rmfill.cpp
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
* GradientFill, TextureFill class
|
|
3
|
-
*
|
|
4
|
-
* Copyright © 2002 - 2009 by Timothy P. Hunter
|
|
1
|
+
/**
|
|
2
|
+
* GradientFill, TextureFill class methods.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
4
|
+
* Copyright (c) 2002 - 2009 Timothy P. Hunter
|
|
5
|
+
* Copyright (c) 2009 - Benjamin Thomas and Omer Bar-or
|
|
6
|
+
* Copyright (c) 2009 - RMagick contributors
|
|
7
7
|
*
|
|
8
8
|
* @file rmfill.cpp
|
|
9
|
-
* @version $Id: rmfill.cpp,v 1.33 2009/12/20 02:33:33 baror Exp $
|
|
10
9
|
* @author Tim Hunter
|
|
11
|
-
|
|
10
|
+
*/
|
|
12
11
|
|
|
13
12
|
#include "rmagick.h"
|
|
14
13
|
|
|
@@ -807,4 +806,3 @@ TextureFill_fill(VALUE self, VALUE image_obj)
|
|
|
807
806
|
|
|
808
807
|
return self;
|
|
809
808
|
}
|
|
810
|
-
|
data/ext/RMagick/rmilist.cpp
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
* ImageList class
|
|
3
|
-
*
|
|
4
|
-
* Copyright © 2002 - 2009 by Timothy P. Hunter
|
|
1
|
+
/**
|
|
2
|
+
* ImageList class methods.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
4
|
+
* Copyright (c) 2002 - 2009 Timothy P. Hunter
|
|
5
|
+
* Copyright (c) 2009 - Benjamin Thomas and Omer Bar-or
|
|
6
|
+
* Copyright (c) 2009 - RMagick contributors
|
|
7
7
|
*
|
|
8
8
|
* @file rmilist.cpp
|
|
9
|
-
* @version $Id: rmilist.cpp,v 1.94 2009/12/20 02:33:33 baror Exp $
|
|
10
9
|
* @author Tim Hunter
|
|
11
|
-
|
|
10
|
+
*/
|
|
12
11
|
|
|
13
12
|
#include "rmagick.h"
|
|
14
13
|
|