View Issue Details

IDProjectCategoryView StatusLast Update
0008378ScribusGraphics / Image Framespublic2019-09-03 12:23
Reporterpspencer Assigned Tofschmid  
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformlinuxOSFedoraOS Version10
Product Version1.3.5 
Target Version1.5.5 
Summary0008378: PDF/EPS image scaling depends non-portably on gs resolution preference
DescriptionIf 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 ReproduceSee above.
TagsNo tags attached.
PatchNo

Relationships

related to 0010735 closedjghali Changing ghostscript DPI settings, duplicated Image Frames produce mismatch between canvas view and exported PDF 
has duplicate 0009959 closedjghali Changing the resolution for rasterizing PDFs in image frames changes their scale 
related to 0015797 closedjghali PDFs imported and duplicated in image frames wrongly scaled on PDF export 

Activities

ale

2019-09-02 15:12

manager   ~0046612

this setting should be probably be removed and replaced by a per document setting.

there seems to already be a setting for eps graphics in the pdf export dialog.
we should probably use that value for all files processed by gs (or multiple such values).

Issue History

Date Modified Username Field Change
2009-08-24 14:32 pspencer New Issue
2009-08-24 18:47 jghali Target Version => 1.3.6
2010-02-16 23:04 cbradney Status new => assigned
2010-02-16 23:04 cbradney Assigned To => cbradney
2010-02-16 23:05 cbradney Assigned To cbradney =>
2010-02-16 23:05 cbradney Status assigned => new
2010-02-16 23:05 cbradney Target Version 1.3.6 => 1.3.7
2010-05-26 22:30 cbradney Target Version 1.3.7 => 1.3.8
2010-07-17 20:52 cbradney Target Version 1.3.8 => 1.3.9
2010-11-23 20:14 cbradney Target Version 1.3.9 => 1.4.0
2010-11-23 21:41 plinnell Assigned To => fschmid
2010-11-23 21:41 plinnell Status new => assigned
2011-02-16 16:21 plinnell Target Version 1.4.0 => 1.4.1.svn
2011-04-16 10:05 cbradney Target Version 1.4.1.svn => 1.4.1
2011-04-25 21:19 jghali Relationship added has duplicate 0009959
2012-04-29 21:13 cbradney Target Version 1.4.1 => 1.4.2
2013-01-13 21:34 cbradney Target Version 1.4.2 => 1.4.3
2013-07-04 20:26 cbradney Target Version 1.4.3 => 1.5.0
2014-07-03 19:41 Kunda Target Version 1.5.0 => 1.5.1
2014-07-21 04:45 FirasH Relationship added related to 0010735
2015-09-17 20:10 Kunda Category Graphics / Image Frames => Graphics/Img Frames
2015-09-17 20:11 Kunda Category Graphics/Img Frames => Graphics / Image Frames
2016-01-23 17:17 cbradney Target Version 1.5.1 => 1.5.3
2016-12-08 22:04 Kunda Target Version 1.5.3 => 1.5.4
2018-04-30 13:45 jghali Target Version 1.5.4 => 1.5.5
2018-04-30 13:45 jghali Patch => No
2019-09-02 02:45 jghali Relationship added related to 0015797
2019-09-02 15:12 ale Note Added: 0046612
2019-09-03 12:23 ale Status assigned => new