After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789019 - Incorrect rendering of big SVG file when exporting to PDF
Incorrect rendering of big SVG file when exporting to PDF
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
2.40.x
Other Linux
: Normal major
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2017-10-15 16:51 UTC by Ilya Melamed
Modified: 2017-12-13 18:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ilya Melamed 2017-10-15 16:51:27 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.
Comment 1 Ilya Melamed 2017-10-15 16:59:13 UTC
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
Comment 2 André Klapper 2017-10-16 08:14:58 UTC
Please provide a public testcase and exact version information.
Resetting priority.
Comment 3 Ilya Melamed 2017-10-16 17:22:59 UTC
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
Comment 4 André Klapper 2017-10-16 17:41:36 UTC
I can reproduce the problem in 2.40.18.
Comment 5 GNOME Infrastructure Team 2017-12-13 18:29:45 UTC
-- 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.