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
0009799ScribusPDFpublic2011-03-04 12:182014-10-25 01:00
Reportercezaryece 
Assigned Tojghali 
PrioritynormalSeveritytweakReproducibilityN/A
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version1.4.0svn 
Target Version1.5.1Fixed in Version 
Summary0009799: [PATCH] autocroping images during PDF export
DescriptionHere is patch for automatically crop JPG (and only JPG) images if they are manually scaled.
Patch is small but working well for me.

Maybe there should an option in PDF Export dialogue for switching this feature on/off - I am not good enough in GUI and Preferences tasks in Scribus.
Maybe my patch inspires somebody who improve it with GUI/Preferences and for other kind of files...
Tagspatch
PatchYes
Attached Filespatch file icon autocrop_pdflib_core.patch [^] (2,247 bytes) 2011-03-04 12:18 [Show Content]

- Relationships
has duplicate 0011393closedjghali Export to PDF should trim images to frames 

-  Notes
(0025870)
cbradney (administrator)
2011-03-21 08:18

Assigning to Jean to review. I think I would prefer a ScImage::cropped(x,y,w,h) function than extra code in the PDF lib, so it can then be applied to all image types and the code can then be specific to image types as required.
(0028138)
cbradney (administrator)
2012-06-14 23:30

Jean can you please test?
(0029190)
ale (manager)
2012-11-11 22:32

double xs = sx * c->pixm.imgInfo.xres/72;
double w = (c->width()/72) * c->pixm.imgInfo.xres / xs;

is the same as

w = c->width()/sx;

(where sx is c->imageXScale())
(0030144)
JLuc (updater)
2013-05-09 12:07

That would be great and contribute to have slightly lighter PDFs.

- Issue History
Date Modified Username Field Change
2011-03-04 12:18 cezaryece New Issue
2011-03-04 12:18 cezaryece File Added: autocrop_pdflib_core.patch
2011-03-21 08:14 cbradney Assigned To => jghali
2011-03-21 08:14 cbradney Status new => assigned
2011-03-21 08:18 cbradney Note Added: 0025870
2011-04-16 11:26 cbradney Target Version => 1.5.0
2012-06-14 23:30 cbradney Note Added: 0028138
2012-11-11 22:32 ale Note Added: 0029190
2013-01-23 08:03 jghali Relationship added has duplicate 0011393
2013-05-09 12:07 JLuc Note Added: 0030144
2014-04-04 17:16 JLuc Tag Attached: patch
2014-07-03 21:32 Kunda Target Version 1.5.0 => 1.5.1
2014-10-25 01:00 Kunda Patch => Yes



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker