Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12-SP2:Update
ImageMagick.4412
ImageMagick-pdf-img-compression.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-pdf-img-compression.patch of Package ImageMagick.4412
From 931847a85bfc941d8ae5e85d34c74461ad2083ff Mon Sep 17 00:00:00 2001 From: cristy <urban-warrior@git.imagemagick.org> Date: Fri, 21 Feb 2014 14:48:05 +0000 Subject: [PATCH] --- coders/pdf.c | 2 +- coders/ps.c | 14 ++++++++++---- coders/ps2.c | 2 +- coders/ps3.c | 2 +- 4 files changed, 13 insertions(+), 7 deletions(-) --- coders/pdf.c +++ coders/pdf.c @@ -1222,7 +1222,7 @@ RestoreMSCWarning scene=0; do { - compression=UndefinedCompression; + compression=image->compression; if (image_info->compression != UndefinedCompression) compression=image_info->compression; switch (compression) --- coders/ps.c +++ coders/ps.c @@ -1362,6 +1362,9 @@ static MagickBooleanType WritePSImage(const ImageInfo *image_info,Image *image) **labels, page_geometry[MaxTextExtent]; + CompressionType + compression; + const char **s, *value; @@ -1446,6 +1449,9 @@ static MagickBooleanType WritePSImage(const ImageInfo *image_info,Image *image) if (status == MagickFalse) return(status); (void) ResetMagickMemory(&bounds,0,sizeof(bounds)); + compression=image->compression; + if (image_info->compression != UndefinedCompression) + compression=image_info->compression; page=1; scene=0; do @@ -1901,9 +1907,9 @@ RestoreMSCWarning */ (void) FormatLocaleString(buffer,MaxTextExtent,"%.20g %.20g\n0\n%d\n", (double) image->columns,(double) image->rows, - image_info->compression == RLECompression ? 1 : 0); + compression == RLECompression ? 1 : 0); (void) WriteBlobString(image,buffer); - switch (image_info->compression) + switch (compression) { case RLECompression: { @@ -2031,7 +2037,7 @@ RestoreMSCWarning (void) FormatLocaleString(buffer,MaxTextExtent, "%.20g %.20g\n%d\n%d\n0\n",(double) image->columns,(double) image->rows,image->storage_class == PseudoClass ? 1 : 0, - image_info->compression == RLECompression ? 1 : 0); + compression == RLECompression ? 1 : 0); (void) WriteBlobString(image,buffer); /* Dump number of colors and colormap. @@ -2047,7 +2053,7 @@ RestoreMSCWarning ScaleQuantumToChar(image->colormap[i].blue)); (void) WriteBlobString(image,buffer); } - switch (image_info->compression) + switch (compression) { case RLECompression: { --- coders/ps2.c +++ coders/ps2.c @@ -465,7 +465,7 @@ static MagickBooleanType WritePS2Image(const ImageInfo *image_info,Image *image) status=OpenBlob(image_info,image,WriteBinaryBlobMode,&image->exception); if (status == MagickFalse) return(status); - compression=UndefinedCompression; + compression=image->compression; if (image_info->compression != UndefinedCompression) compression=image_info->compression; switch (compression) --- coders/ps3.c +++ coders/ps3.c @@ -885,7 +885,7 @@ static MagickBooleanType WritePS3Image(const ImageInfo *image_info,Image *image) status=OpenBlob(image_info,image,WriteBinaryBlobMode,&image->exception); if (status == MagickFalse) return(MagickFalse); - compression=UndefinedCompression; + compression=image->compression; if (image_info->compression != UndefinedCompression) compression=image_info->compression; switch (compression) -- libgit2 0.22.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor