Scribusoid

Author Topic: Combined jpg and vector pdf output?  (Read 1878 times)

xjortsu

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
  • Scribus User
Combined jpg and vector pdf output?
« on: February 23, 2016, 05:23:02 pm »
Hi, I need to combine a multiple page catalogue I made in Scribus. It has large jpg background images on the pages and multiple (8..20) transparent png images on top of the background. Text areas are mostly on the bottom of the pages but there's also some other text boxes around the pages.

When I export these pages as pdf, Scribus does not combine the background and foreground graphics like it does when I export it in jpg format. This results in large pdf files.

Is there a way to combine all raster graphics to one jpg image and preserve text parts as vectors? Thanks in advance if someone can help.

Nermander

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 17
Re: Combined jpg and vector pdf output?
« Reply #1 on: February 24, 2016, 09:24:06 am »
As far as I know: No, not in Scribus.

What you are asking for is called flattening and Scribus does not currently support flattening.

What you can do is use ghostscript to flatten your PDF.

xjortsu

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
  • Scribus User
Re: Combined jpg and vector pdf output?
« Reply #2 on: February 24, 2016, 01:13:23 pm »
Yeah, I was talking about flattening of course. :) I consider this is a serious limitation in Scribus. "Flatten raster graphics" would be a wonderful option upon pdf export, especially when the program code to make that happen is already in the jpg export!

Quote
What you can do is use ghostscript to flatten your PDF
Can you give a link to manual, on how to do that? I'm afraid I'm new to ghostscript but this might be a good time to dig into it. :)

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2069
  • Karma: 27
    • the graphics lab
Re: Combined jpg and vector pdf output?
« Reply #3 on: February 24, 2016, 02:03:31 pm »
hey,

you're welcome to provide a solution by either by programming it, by looking for (paying?) a programmer, by starting a kickstarter for doing it.
scribus needs new people getting active! (even if it's not easy to get active in the scribus community...)

many people will be very grateful! really!

now, why scribus can do it for jpg and not for pdf? because it's much easier!

jpg images contain only one image. in the pdf, scribus has to keep most of the items separated (text, lines, images, ...) and mix all that with the pre-calculated rasterization related to the flattening.

it for sure doable, but time consuming... and the programmers who are currently active in scribus are already very busy...

Nermander

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 17
Re: Combined jpg and vector pdf output?
« Reply #4 on: February 24, 2016, 09:11:12 pm »
The major problem is: What resolution, colorspace, compression etc should the flattened image have? There needs to be a lot of settings to give full control of the flattening.

I think that in most cases flattening is done by the RIP, and Scribus is pre-RIP software.

mnawij

  • Sr. Member
  • ****
  • Posts: 261
  • Karma: 2
  • Scribus User
Re: Combined jpg and vector pdf output?
« Reply #5 on: February 25, 2016, 03:30:55 am »
xjortsu,

Have you considered combining the image elements in GIMP, Krita or such before placing in Scribus?  Maybe create the image placement first within Scribus if you need it for the layout and then export the .jpg files for replacement within another Scribus files for completion???  I know these are muckity-muck work around, but sometimes they are necessary evils :-)

mnawij

xjortsu

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
  • Scribus User
Re: Combined jpg and vector pdf output?
« Reply #6 on: February 25, 2016, 08:15:45 am »
Hi mnawij, I got the job done already, and I didn't need other programs. :)

1) Saved a vector-only version of my catalogue (deleted any raster graphics from them).
2) Removed all vector elements from the original pages and exported them as jpg.
3) Combined the jpg's to the vector-only versions.

My catalogue has 62 pages so all the above was at least 4 hours of extra work. :(