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
0008657ScribusGraphics / Image Framespublic09-Dec-20 20:0510-Jan-03 00:35
Reportermhx 
Assigned Tofschmid 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version1.5.0svn 
Summary0008657: [PATCH] Per-image override of PDF compression parameters
DescriptionA while ago I was suggesting [1] on #scribus-dev to add a feature to
Scribus that allows overriding PDF image compression parameters on a
per-image basis.

My motivation was that I wanted to have one of the images in my document
compressed as ZIP and all others as JPEG in the final PDF. The source
images were all in (losslessly compressed) TIFF format, so "Automatic"
compression gave me JPEG for all images. There was no way to have only
one image compressed as ZIP, other than a quick hack of pdflib_core that
forced ZIP compression for certain filenames...

Anyway, as promised, I've just found the time for a not-so-quick hack that
adds two controls to the Image Properties page that allow overriding the
compression method and/or compression quality individually for each image.

Patch against trunk is attached.

Feedback is very welcome, as this is my first hack on Scribus and I have
certainly overlooked something important... ;)

Cheers,
Marcus

[1] <mhx> Hi! Just a quick question: is it easily possible to force ZIP
      compression for certain images when exporting to PDF? A quick glance
      at pdflib_core.cpp suggests that "Auto" merely chooses "JPEG" all the
      time; (If I choose ZIP, my PDF is more than 3GB; if I choose Auto,
      one image - a map - looks very crappy.)
    <christoph_s> I guess you would have to apply the ompression in an
      image editor
    <mhx> Um?
    <christoph_s> although I don't see why. AFAIK, ZIP is not the best
      method for images
    <mhx> My source images are all ZIP compressed TIFFs. I don't mind all of
      the images to be JPEG compressed in the final PDF, just *the one* image
      for which JPEG compression is obviously unsuitable should be ZIP
      compressed.
    <mhx> (Ideally, one should be able to override the "default" compression
      somewhere in the image properties.)
    <christoph_s> then open the file in an image editor, and save it with
      ZIP compression
    <mhx> Um, again, that's what I have *for all my images*.
    <christoph_s> except one, you said
    <mhx> No. All images I've got in the document are ZIP compressed.
      Regardless, Scribus recompresses them as JPEG. And actually, that's what
      I *want*, because I don't want to manually convert my images to JPEG
      before importing them in Scribus. I want to be able to choose the JPEG
      quality when *exporting*, not when *importing*. However, I'd like to
      have *one file* *exported* as ZIP instead of JPEG.
    <christoph_s> that's not possible, and I doubt there is enough developer
      time to implement such a rarely requested feature
    <mhx> I'm not asking for anyone to implement it. If it's rarely
      requested, I assume it's not easily possible.
    <christoph_s> it takes time, but I think you are the first person who
      brought this up ;)
    <mhx> However, I think it would absolutely make sense to have something
      like this. I'll probably have a look at implementing this after I'm done
      with my project.
    <christoph_s> that's a great idea :)
TagsNo tags attached.
Attached Filesdiff file icon scribus-trunk-override-compression.diff [^] (17,777 bytes) 09-Dec-20 20:05 [Show Content]

- Relationships

-  Notes
(0023018)
cbradney (administrator)
10-Jan-03 00:35

Thanks!

- Issue History
Date Modified Username Field Change
09-Dec-20 20:05 mhx New Issue
09-Dec-20 20:05 mhx File Added: scribus-trunk-override-compression.diff
09-Dec-21 03:20 christoph_s Status new => assigned
09-Dec-21 03:20 christoph_s Assigned To => jghali
09-Dec-21 09:02 jghali Assigned To jghali =>
09-Dec-21 09:02 jghali Status assigned => new
09-Dec-21 14:51 fschmid Status new => resolved
09-Dec-21 14:51 fschmid Fixed in Version => 1.5.0svn
09-Dec-21 14:51 fschmid Resolution open => fixed
09-Dec-21 14:51 fschmid Assigned To => fschmid
10-Jan-03 00:35 cbradney Note Added: 0023018
10-Jan-03 00:35 cbradney Status resolved => closed



Copyright © 2000 - 2013 MantisBT Team
Powered by Mantis Bugtracker