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

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0008378 [Scribus] Graphics / Image Frames minor always 09-Aug-24 16:32 09-Aug-24 20:47
Reporter pspencer View Status public  
Assigned To
Priority normal Resolution open Platform linux
Status new   OS Fedora
Projection none   OS Version 10
ETA none Fixed in Version Product Version 1.3.5
  Target Version 1.3.6 Product Build 1.3.5.1 Release
Summary 0008378: PDF/EPS image scaling depends non-portably on gs resolution preference
Description If I have scribus's gs resolution preference (under external tools) set to 300, and then I create a document and put a 1 inch by 1 inch EPS or PDF image into a 1 inch by 1 inch image frame, unscaled (X scaling = Y scaling = 100%), then save the document, the saved document's PAGEOBJECT item has LOCALSCX,Y = 0.24 instead of 1.0.

If I change scribus's gs resolution preference to 72 and then try to reopen the same document (or if I give the document to another user whose gs resolution preference is different from mine), the image appears shrunken to 24% of its intended size.

I think the easiest fix would be for the file-saving code to intercept the internal gs-resolution-dependent scale factor (0.24 in this example) and multiply it by

   PrefsManager::instance()->appPrefs.gs_Resolution / 72.0

just the same way as is done in pdflib_core.cpp when exporting such images to
pdf. This would produce a gs-resolution-independent scale factor (1.0 in this
example) to store in the document.

Then, the file-reading code could read the document and multiply it by

    72.0 / PrefsManager::instance()->appPrefs.gs_Resolution

Then, regardless of the user's gs resolution preference setting, the document will open with the image scaled correctly.

Of course, this fix would mean users whose gs resolution preference was set to something other than 72 would see images scaled wrong the first time they open them in a fixed version of scribus. Also, images saved with the fixed version would be read wronly by the unfixed version and vice versa. However, I don't think that's much worse than the current situation -- after all, first time running 1.3.5.1 preferences were reset to defaults so such users would have already seen such documents scaled wrongly.
Steps To Reproduce See above.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
09-Aug-24 16:32 pspencer New Issue
09-Aug-24 20:47 jghali Target Version => 1.3.6



Mantis 1.1.7[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker