Accepting request 44196 from graphics
Copy from graphics/ImageMagick based on submit request 44196 from user pgajdos OBS-URL: https://build.opensuse.org/request/show/44196 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ImageMagick?expand=0&rev=39
This commit is contained in:
commit
49d2b25e27
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:069cb672ac0ffa0e46876c80ec746a8e5e30975b28c4af2bca0e3739f84a00d2
|
|
||||||
size 8760944
|
|
@ -1,39 +0,0 @@
|
|||||||
Index: ImageMagick-6.6.1-0/coders/tiff.c
|
|
||||||
===================================================================
|
|
||||||
--- ImageMagick-6.6.1-0.orig/coders/tiff.c
|
|
||||||
+++ ImageMagick-6.6.1-0/coders/tiff.c
|
|
||||||
@@ -2668,22 +2668,19 @@ static MagickBooleanType WriteTIFFImage(
|
|
||||||
image->endian=MSBEndian;
|
|
||||||
if ((int) (*(char *) &lsb_first) != 0)
|
|
||||||
image->endian=LSBEndian;
|
|
||||||
- if ((compress_tag == COMPRESSION_JPEG) && (photometric != PHOTOMETRIC_RGB))
|
|
||||||
- compress_tag=COMPRESSION_NONE;
|
|
||||||
+ if ((compress_tag == COMPRESSION_CCITTFAX3) &&
|
|
||||||
+ (photometric != PHOTOMETRIC_MINISWHITE))
|
|
||||||
+ {
|
|
||||||
+ compress_tag=COMPRESSION_NONE;
|
|
||||||
+ endian=FILLORDER_MSB2LSB;
|
|
||||||
+ }
|
|
||||||
else
|
|
||||||
- if ((compress_tag == COMPRESSION_CCITTFAX3) &&
|
|
||||||
- (photometric != PHOTOMETRIC_MINISWHITE))
|
|
||||||
- {
|
|
||||||
- compress_tag=COMPRESSION_NONE;
|
|
||||||
- endian=FILLORDER_MSB2LSB;
|
|
||||||
- }
|
|
||||||
- else
|
|
||||||
- if ((compress_tag == COMPRESSION_CCITTFAX4) &&
|
|
||||||
- (photometric != PHOTOMETRIC_MINISWHITE))
|
|
||||||
- {
|
|
||||||
- compress_tag=COMPRESSION_NONE;
|
|
||||||
- endian=FILLORDER_MSB2LSB;
|
|
||||||
- }
|
|
||||||
+ if ((compress_tag == COMPRESSION_CCITTFAX4) &&
|
|
||||||
+ (photometric != PHOTOMETRIC_MINISWHITE))
|
|
||||||
+ {
|
|
||||||
+ compress_tag=COMPRESSION_NONE;
|
|
||||||
+ endian=FILLORDER_MSB2LSB;
|
|
||||||
+ }
|
|
||||||
(void) TIFFSetField(tiff,TIFFTAG_COMPRESSION,compress_tag);
|
|
||||||
(void) TIFFSetField(tiff,TIFFTAG_FILLORDER,endian);
|
|
||||||
(void) TIFFSetField(tiff,TIFFTAG_BITSPERSAMPLE,quantum_info->depth);
|
|
@ -1,55 +0,0 @@
|
|||||||
Index: ImageMagick-6.6.1-0/magick/image.c
|
|
||||||
===================================================================
|
|
||||||
--- ImageMagick-6.6.1-0.orig/magick/image.c
|
|
||||||
+++ ImageMagick-6.6.1-0/magick/image.c
|
|
||||||
@@ -3959,6 +3959,9 @@ MagickExport MagickBooleanType SyncImage
|
|
||||||
MagickStatusType
|
|
||||||
flags;
|
|
||||||
|
|
||||||
+ ResolutionType
|
|
||||||
+ units;
|
|
||||||
+
|
|
||||||
/*
|
|
||||||
Sync image options.
|
|
||||||
*/
|
|
||||||
@@ -4150,16 +4153,18 @@ MagickExport MagickBooleanType SyncImage
|
|
||||||
option);
|
|
||||||
option=GetImageOption(image_info,"units");
|
|
||||||
if (option != (const char *) NULL)
|
|
||||||
- image->units=(ResolutionType) ParseMagickOption(MagickResolutionOptions,
|
|
||||||
+ units=(ResolutionType) ParseMagickOption(MagickResolutionOptions,
|
|
||||||
MagickFalse,option);
|
|
||||||
- if (image_info->units != UndefinedResolution)
|
|
||||||
+ else
|
|
||||||
+ units = image_info->units;
|
|
||||||
+ if (units != UndefinedResolution)
|
|
||||||
{
|
|
||||||
- if (image->units != image_info->units)
|
|
||||||
+ if (image->units != units)
|
|
||||||
switch (image->units)
|
|
||||||
{
|
|
||||||
case PixelsPerInchResolution:
|
|
||||||
{
|
|
||||||
- if (image_info->units == PixelsPerCentimeterResolution)
|
|
||||||
+ if (units == PixelsPerCentimeterResolution)
|
|
||||||
{
|
|
||||||
image->x_resolution/=2.54;
|
|
||||||
image->y_resolution/=2.54;
|
|
||||||
@@ -4168,7 +4173,7 @@ MagickExport MagickBooleanType SyncImage
|
|
||||||
}
|
|
||||||
case PixelsPerCentimeterResolution:
|
|
||||||
{
|
|
||||||
- if (image_info->units == PixelsPerInchResolution)
|
|
||||||
+ if (units == PixelsPerInchResolution)
|
|
||||||
{
|
|
||||||
image->x_resolution*=2.54;
|
|
||||||
image->y_resolution*=2.54;
|
|
||||||
@@ -4178,7 +4183,7 @@ MagickExport MagickBooleanType SyncImage
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
- image->units=image_info->units;
|
|
||||||
+ image->units=units;
|
|
||||||
}
|
|
||||||
option=GetImageOption(image_info,"white-point");
|
|
||||||
if (option != (const char *) NULL)
|
|
3
ImageMagick-6.6.3-1.tar.bz2
Normal file
3
ImageMagick-6.6.3-1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:09ccde39d7e6ddbc8ab8b6d9043c3e6023a11b1a076b7365e92910883bb7a78e
|
||||||
|
size 8845790
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 29 13:08:43 CEST 2010 - pgajdos@suse.cz
|
||||||
|
|
||||||
|
- updated to 6.6.3-1:
|
||||||
|
* obsoletes units.patch
|
||||||
|
* obsoletes grayscale-tiff-jpeg.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 22 17:37:54 CEST 2010 - pgajdos@suse.cz
|
Tue Jun 22 17:37:54 CEST 2010 - pgajdos@suse.cz
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ImageMagick (Version 6.6.1.0)
|
# spec file for package ImageMagick (Version 6.6.3.1)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -29,10 +29,10 @@ Provides: imagemag
|
|||||||
License: Public Domain, Freeware
|
License: Public Domain, Freeware
|
||||||
Group: Productivity/Graphics/Other
|
Group: Productivity/Graphics/Other
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 6.6.1.0
|
Version: 6.6.3.1
|
||||||
Release: 4
|
Release: 1
|
||||||
%define source_version 6.6.1-0
|
%define source_version 6.6.3-1
|
||||||
%define libver 3
|
%define libver 4
|
||||||
Summary: Viewer and Converter for Images
|
Summary: Viewer and Converter for Images
|
||||||
Url: http://www.imagemagick.org
|
Url: http://www.imagemagick.org
|
||||||
Source: ImageMagick-%{source_version}.tar.bz2
|
Source: ImageMagick-%{source_version}.tar.bz2
|
||||||
@ -42,8 +42,6 @@ Source2: xtp-%{xtp_version}.tar.bz2
|
|||||||
Source3: baselibs.conf
|
Source3: baselibs.conf
|
||||||
Patch1: ImageMagick-%{version}-examples.patch
|
Patch1: ImageMagick-%{version}-examples.patch
|
||||||
Patch2: ImageMagick-%{version}-doc.patch
|
Patch2: ImageMagick-%{version}-doc.patch
|
||||||
Patch3: ImageMagick-%{version}-units.patch
|
|
||||||
Patch4: ImageMagick-%{version}-grayscale-tiff-jpeg.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%package -n perl-PerlMagick
|
%package -n perl-PerlMagick
|
||||||
@ -121,8 +119,6 @@ rm -rf xtp-%{xtp_version}
|
|||||||
%setup -n ImageMagick-%{source_version} -b 2
|
%setup -n ImageMagick-%{source_version} -b 2
|
||||||
%patch1
|
%patch1
|
||||||
%patch2
|
%patch2
|
||||||
%patch3 -p1
|
|
||||||
%patch4 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define system_ltdl 0
|
%define system_ltdl 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user