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

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009799ScribusPDFpublic11-Mar-04 12:1814-Jul-03 21:32
Assigned Tojghali 
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...
Attached Filespatch file icon autocrop_pdflib_core.patch [^] (2,247 bytes) 11-Mar-04 12:18 [Show Content]

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

-  Notes
cbradney (administrator)
11-Mar-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.
cbradney (administrator)
12-Jun-14 23:30

Jean can you please test?
ale (manager)
12-Nov-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())
JLuc (updater)
13-May-09 12:07

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

- Issue History
Date Modified Username Field Change
11-Mar-04 12:18 cezaryece New Issue
11-Mar-04 12:18 cezaryece File Added: autocrop_pdflib_core.patch
11-Mar-21 08:14 cbradney Assigned To => jghali
11-Mar-21 08:14 cbradney Status new => assigned
11-Mar-21 08:18 cbradney Note Added: 0025870
11-Apr-16 11:26 cbradney Target Version => 1.5.0
12-Jun-14 23:30 cbradney Note Added: 0028138
12-Nov-11 22:32 ale Note Added: 0029190
13-Jan-23 08:03 jghali Relationship added has duplicate 0011393
13-May-09 12:07 JLuc Note Added: 0030144
14-Apr-04 17:16 JLuc Tag Attached: patch
14-Jul-03 21:32 Kunda Target Version 1.5.0 => 1.5.1

Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker