Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012525ScribusGraphics / Image Framespublic2014-07-15 05:582014-08-21 13:47
ReporterKunda 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformMacOSOSXOS Version10.8.5
Product Version 
Target VersionFixed in Version 
Summary0012525: GraphicsMagick won't export SLA because of SVG, "Failed to load an image mask"
DescriptionWhen trying to export to PDF that has a specific SVG in it, I get the error 'Failed to load an image mask'
The 'Collect for output' compressed directory is attached along with a screenshot of the error
Steps To Reproduce1) Open a New SLA
2) Create an Image frame
3) Import easterlillies-frame(publicdomainvectors).svg
4) Try to export to PDF

or
1) unzip attached compressed archive
2) open SLA
3) Try to export to PDF
Additional Information1.5svn r19342
TagsNo tags attached.
Patch
Attached Fileszip file icon image-mask-svg-issue.zip [^] (81,698 bytes) 2014-07-15 05:58
png file icon Failed_to_load_an_image_mask.png [^] (25,479 bytes) 2014-07-15 05:58

- Relationships
related to 0011994confirmed The GraphicsMagick plug-in doesn't recognise all supported formats, even though they can be imported 
child of 0002931acknowledged Metabug: SVG 

-  Notes
(0032782)
Kunda (manager)
2014-07-16 18:25
edited on: 2014-07-16 18:27

From MrB on IRC:

>MrB:
else
{
bool gotAlpha = false;
bool pdfVer14 = (Options.Version >= PDFOptions::PDFVersion_14) || (Options.Version == PDFOptions::PDFVersion_X4);
gotAlpha = img2.getAlpha(fn, c->pixm.imgInfo.actualPageNumber, im2, true, pdfVer14, afl, img.width(), img.height());
if (!gotAlpha)
{
PDF_Error_MaskLoadFailure(fn);
return false;
}
alphaM = !im2.isEmpty();
}

>Kunda: I'll take a stab at it: so it's failing because it doesn't(?) have an alpha layer and it's trying to be exported in the wrong pdf format version?
>MrB: yeah i guess so.. but i wonder why thats a requirement. a valid svg could also just be a solid rectangle

(0032784)
FirasH (developer)
2014-07-16 18:32

Same here with 1.5.0.svn (19347) on openSUSE.
(0032969)
JLuc (updater)
2014-07-25 00:06

I confirm the issue on ubuntu.

Strange is that the preflight checker does issue a warning : "item has got some transparency" !!! (translated from french).

scribus knows it has a transparency in the preflight checker
but lands in that (!gotAlpha) part a few seconds later when creating the PDF...

I also had a crash a few seconds later the first time i tried, but cannot reproduce the crash.
(0032970)
JLuc (updater)
2014-07-25 00:14

PS : following cited code excerpt if condition, i did test with export to PDF version 1.4
(0032973)
Kunda (manager)
2014-07-25 01:10

jghali says he can't reproduce it on windows (not sure what win version he is using)
(0033022)
Kunda (manager)
2014-07-26 15:05

The non-ideal workaround was changing the SVG in to a PNG :(
The issue still remains except on windows per jghali)
(0033030)
jghali (administrator)
2014-07-26 18:00

I've compiled latest trunk version in an OpenSuse 13.1 VM and... I cannot reproduce the issue either...
(0033031)
jghali (administrator)
2014-07-26 19:59

Same in Ubuntu 14.04, I cannot reproduce the issue.
(0033032)
jghali (administrator)
2014-07-26 20:10

I wonder if the use of GraphicksMagick may be involved in this issue...
(0033039)
Kunda (manager)
2014-07-27 08:27

Good thinking. I will figure out how to tweak the build formula to not build with GraphicksMagick and report back soon
(0033154)
Kunda (manager)
2014-08-02 19:50

jghali, Confirmed this is a GraphicsMagick issue. I compiled r19395 without GM support (v1.3.19) and was able to export the SVG to pdf. How do we proceed ?

- Issue History
Date Modified Username Field Change
2014-07-15 05:58 Kunda New Issue
2014-07-15 05:58 Kunda File Added: image-mask-svg-issue.zip
2014-07-15 05:58 Kunda File Added: Failed_to_load_an_image_mask.png
2014-07-15 05:59 Kunda Project Infrastructure => Scribus
2014-07-15 06:00 Kunda Category General => Graphics / Image Frames
2014-07-15 06:00 Kunda Relationship added child of 0002931
2014-07-16 18:25 Kunda Note Added: 0032782
2014-07-16 18:27 Kunda Note Edited: 0032782 View Revisions
2014-07-16 18:32 FirasH Note Added: 0032784
2014-07-16 18:32 FirasH Status new => confirmed
2014-07-25 00:06 JLuc Note Added: 0032969
2014-07-25 00:14 JLuc Note Added: 0032970
2014-07-25 01:10 Kunda Note Added: 0032973
2014-07-26 15:05 Kunda Note Added: 0033022
2014-07-26 16:41 Kunda Priority high => normal
2014-07-26 18:00 jghali Note Added: 0033030
2014-07-26 19:59 jghali Note Added: 0033031
2014-07-26 20:10 jghali Note Added: 0033032
2014-07-27 08:27 Kunda Note Added: 0033039
2014-08-02 19:50 Kunda Note Added: 0033154
2014-08-08 22:17 Kunda Relationship added related to 0011994
2014-08-21 13:47 Kunda Summary Error when trying to export SLA with SVG in it: Failed to load an image mask => GraphicsMagick won't export SLA because of SVG, "Failed to load an image mask"



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker