rmagick 4.1.0.rc1 → 4.1.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/ext/RMagick/rmimage.c +10 -4
- data/lib/rmagick/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a57b4160820f61c1c40c33c68be7a616e3698e4ca9bb94840d692fd41dd75a4a
|
4
|
+
data.tar.gz: e7e610cfd2040dd0727211c0a2106dafefab276f9196ac1f2d625b94186cd4c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a95a15f1caa2b4bf104b46cb94cb833e4b8fbc399f1b0ebffeca54e0dd2642979cb575dfee168beec0d4cc0786f5979ce623f94511257f4945551bc507b12403
|
7
|
+
data.tar.gz: 557a7bd78a710bf1c332fbac87cc9fc82143290b4d7fa9cebe8788d332cf82e66b200a3dc5fbba19a377458a1d6940db13cb9d030561802c40777a820087290c
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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 4.1.0.rc2
|
7
|
+
|
8
|
+
- fix a couple of compilation bugs (#796, #797)
|
9
|
+
|
6
10
|
## RMagick 4.1.0.rc1
|
7
11
|
|
8
12
|
The ImageMagick 7 release is here! This adds beta support for ImageMagick 7.
|
data/ext/RMagick/rmimage.c
CHANGED
@@ -24,6 +24,10 @@
|
|
24
24
|
if (result != (Image *)NULL) \
|
25
25
|
SetPixelChannelMask(result, channel_mask);
|
26
26
|
|
27
|
+
#ifndef magick_module
|
28
|
+
#define magick_module module
|
29
|
+
#endif
|
30
|
+
|
27
31
|
/** Method that effects an image */
|
28
32
|
typedef Image *(effector_t)(const Image *, const double, const double, ExceptionInfo *);
|
29
33
|
/** Method that flips an image */
|
@@ -3932,7 +3936,7 @@ composite_tiled(int bang, int argc, VALUE *argv, VALUE self)
|
|
3932
3936
|
{
|
3933
3937
|
#if defined(IMAGEMAGICK_7)
|
3934
3938
|
BEGIN_CHANNEL_MASK(image, channels);
|
3935
|
-
status = CompositeImage(image, comp_image,
|
3939
|
+
status = CompositeImage(image, comp_image, operator, MagickTrue, x, y, exception);
|
3936
3940
|
END_CHANNEL_MASK(image);
|
3937
3941
|
rm_check_exception(exception, image, bang ? RetainOnError: DestroyOnError);
|
3938
3942
|
#else
|
@@ -10927,6 +10931,7 @@ Image_posterize(int argc, VALUE *argv, VALUE self)
|
|
10927
10931
|
MagickBooleanType dither = MagickFalse;
|
10928
10932
|
unsigned long levels = 4;
|
10929
10933
|
#if defined(IMAGEMAGICK_7)
|
10934
|
+
DitherMethod dither_method;
|
10930
10935
|
ExceptionInfo *exception;
|
10931
10936
|
#endif
|
10932
10937
|
|
@@ -10949,7 +10954,8 @@ Image_posterize(int argc, VALUE *argv, VALUE self)
|
|
10949
10954
|
|
10950
10955
|
#if defined(IMAGEMAGICK_7)
|
10951
10956
|
exception = AcquireExceptionInfo();
|
10952
|
-
|
10957
|
+
dither_method = dither ? RiemersmaDitherMethod : NoDitherMethod;
|
10958
|
+
(void) PosterizeImage(new_image, levels, dither_method, exception);
|
10953
10959
|
rm_check_exception(exception, new_image, DestroyOnError);
|
10954
10960
|
(void) DestroyExceptionInfo(exception);
|
10955
10961
|
#else
|
@@ -16113,7 +16119,7 @@ void add_format_prefix(Info *info, VALUE file)
|
|
16113
16119
|
CHECK_EXCEPTION();
|
16114
16120
|
DestroyExceptionInfo(exception);
|
16115
16121
|
|
16116
|
-
if (magick_info && magick_info->
|
16122
|
+
if (magick_info && magick_info->magick_module)
|
16117
16123
|
{
|
16118
16124
|
// We have to compare the module names because some formats have
|
16119
16125
|
// more than one name. JPG and JPEG, for example.
|
@@ -16122,7 +16128,7 @@ void add_format_prefix(Info *info, VALUE file)
|
|
16122
16128
|
CHECK_EXCEPTION();
|
16123
16129
|
DestroyExceptionInfo(exception);
|
16124
16130
|
|
16125
|
-
if (magick_info2->
|
16131
|
+
if (magick_info2->magick_module && strcmp(magick_info->magick_module, magick_info2->magick_module) != 0)
|
16126
16132
|
{
|
16127
16133
|
rb_raise(rb_eRuntimeError
|
16128
16134
|
, "filename prefix `%s' conflicts with output format `%s'"
|
data/lib/rmagick/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmagick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.0.
|
4
|
+
version: 4.1.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Hunter
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-09-
|
14
|
+
date: 2019-09-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake-compiler
|