View Issue Details

IDProjectCategoryView StatusLast Update
0017008ScribusPrintingpublic2023-08-29 17:46
Reporternitramr Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformDesktop PCOSUbuntuOS Version23.04 64-bit
Product Version1.7.0.svn 
Summary0017008: Print preview rendering is empty (if temporary preview file is a tiff)
DescriptionPage previews in print preview dialog is empty for PDF & Postscript. I checked the code, and it looks like the temporary generated tiff can't load.

scribus/printpreviewcreator_pdf.cpp line 282:
        QString previewFile;
        if (m_showTransparency && m_havePngAlpha)
            previewFile = ScPaths::tempFileDir() + m_tempBaseName + ".png";
        else
            previewFile = ScPaths::tempFileDir() + m_tempBaseName + ".tif";

        if (!image.load(previewFile)) // <-- RETURN ALWAYS FALSE IF TIFF FILE
        {
            imageLoadError(pixmap, pageIndex);
            return pixmap;
        }
Steps To Reproduce1. Start Scribus 1.7.0 svn r25616
2. Create a new document
3. Click on File -> Print Preview
4. Bug: page preview is not rendered correctly (Preview is just 1x1 px)

You will see a print preview if you enable "Display Transparency" flag. In that case, the temporary preview file is a PNG instead of a TIFF.
Additional InformationNot reproducible in Scribus 1.5.8
TagsNo tags attached.
Attached Files
PatchNo

Activities

jghali

2023-08-28 19:06

administrator   ~0050329

No issue here on Windows with GhostScript 10.x.

jghali

2023-08-28 19:12

administrator   ~0050330

Just tried in my Ubuntu 23.04 VM, no issue either.

nitramr

2023-08-29 17:44

developer   ~0050333

I found the root cause.

qt6-image-formats-plugins was missing.

Issue History

Date Modified Username Field Change
2023-08-28 18:16 nitramr New Issue
2023-08-28 18:16 nitramr File Added: Bildschirmfoto vom 2023-08-28 18-57-44.png
2023-08-28 18:57 nitramr Description Updated
2023-08-28 19:06 jghali Note Added: 0050329
2023-08-28 19:12 jghali Note Added: 0050330
2023-08-29 17:44 nitramr Note Added: 0050333
2023-08-29 17:46 nitramr Status new => closed
2023-08-29 17:46 nitramr Resolution open => no change required
2023-08-29 17:46 nitramr Target Version 1.7.0 =>