GNOME Bugzilla – Bug 789019
Incorrect rendering of big SVG file when exporting to PDF
Last modified: 2017-12-13 18:29:45 UTC
Command-line: >rsvg-convert -u -d 300 -p 300 -f pdf -o output.pdf input.svg output.pdf contains JPG images rendered with black backgrounds while the SVG rendered in Google Chrome looks different.
The problematic JPG files seem to be CMYK color coded. Here's the output from EXIFTOOL: ExifTool Version Number : 10.63 File Name : fb75f0f13fc122aa1a974ff4ed3e9156.jpg Directory : c:/temp File Size : 663 kB File Modification Date/Time : 2017:10:15 19:35:02+03:00 File Access Date/Time : 2017:10:15 19:34:59+03:00 File Creation Date/Time : 2017:10:15 19:35:01+03:00 File Permissions : rw-rw-rw- File Type : JPEG File Type Extension : jpg MIME Type : image/jpeg X Resolution : 300 Displayed Units X : inches Y Resolution : 300 Displayed Units Y : inches Profile CMM Type : ADBE Profile Version : 2.1.0 Profile Class : Output Device Profile Color Space Data : CMYK Profile Connection Space : Lab Profile Date Time : 2000:07:26 05:41:53 Profile File Signature : acsp Primary Platform : Apple Computer Inc. CMM Flags : Not Embedded, Independent Device Manufacturer : ADBE Device Model : Device Attributes : Reflective, Glossy, Positive, Color Rendering Intent : Perceptual Connection Space Illuminant : 0.9642 1 0.82491 Profile Creator : ADBE Profile ID : 0 Profile Description : U.S. Web Coated (SWOP) v2 Profile Copyright : Copyright 2000 Adobe Systems, Inc. Media White Point : 0.7084 0.73595 0.57104 A To B0 : (Binary data 41478 bytes, use -b option to extract) A To B2 : (Binary data 41478 bytes, use -b option to extract) A To B1 : (Binary data 41478 bytes, use -b option to extract) B To A0 : (Binary data 145588 bytes, use -b option to extract) B To A1 : (Binary data 145588 bytes, use -b option to extract) B To A2 : (Binary data 145588 bytes, use -b option to extract) Gamut : (Binary data 37009 bytes, use -b option to extract) DCT Encode Version : 100 APP14 Flags 0 : (none) APP14 Flags 1 : (none) Color Transform : YCCK Image Width : 1252 Image Height : 1252 Encoding Process : Baseline DCT, Huffman coding Bits Per Sample : 8 Color Components : 4 Image Size : 1252x1252 Megapixels : 1.6
Please provide a public testcase and exact version information. Resetting priority.
rsvg-convert version 2.40.13 Command-line: >rsvg-convert -u -d 300 -p 300 -f pdf -o output.pdf input.svg input.svg (gzipped): https://s3-eu-west-1.amazonaws.com/bmoss-s3/temp/last_svg.svg.gz output.pdf (gzipped): https://s3-eu-west-1.amazonaws.com/bmoss-s3/temp/last_svg.pdf.gz
I can reproduce the problem in 2.40.18.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/174.