Scribusoid

Author Topic: PNG opacity not exported to PDF  (Read 3086 times)

paoloquaglino

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Scribus User
PNG opacity not exported to PDF
« on: May 21, 2012, 09:52:40 pm »
Hi,
I have a document with many pictures, some of them are jpg, some png.
I applied to many of them some opacity (I mean Properties->Colors->Transparency settings->Opacity) to make them partially transparent.
When I export to PDF, JPGs are ok, PNGs are exported like if they were 100%. ???
The same I get if I apply transparency with Gimp and import the result!
Please note that the fully transparent pixels of a PNG stay transparent. :o
I tried different settings (eg export colors for transparent pixel, exporting from win+photoshop, and of course different PDF versions, different image compression......)
The same I get with scribus on windows.
If I "Save to Image" everything is ok. :-X
Please note that for some images I need to use PNG format because I want them "shaped".

Any ideas...??
Thanks

-----------------------------------------------------------------
Scribus 1.4.1 with Ubuntu 10.4 (x64)

paoloquaglino

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Scribus User
Re: PNG opacity not exported to PDF
« Reply #1 on: May 22, 2012, 03:08:02 am »
UPDATE

Actually the document IS exported correctly, since all transparencies look right with Adobe Acrobat Reader (both Linux and Windows versions)
But the Scribus Print Preview is wrong (and Evince too), so it may not be a Scribus problem...


a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1996
  • Karma: 26
    • the graphics lab
Re: PNG opacity not exported to PDF
« Reply #2 on: May 22, 2012, 02:17:59 pm »
afaik, ghostscript, which is used for the preview, does not support transparencies. (at lest not with basic settings: it can be used to flatten transparencies, so there must be ways to get gs to treat them right.)

the solution here is simple: don't use the preview (which is imo useless... except for some very specific workflows)

evince (and most free pdf reader) don't support transparencies, either.

so, the good ways to preview a document in scribus is to click on the eye button in the lower corner in the status bar or to create a pdf and check it with acrobat reader.

finally, please, make sure that your print shop will support the transparencies!

ciao
a.l.e

paoloquaglino

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Scribus User
Re: PNG opacity not exported to PDF
« Reply #3 on: May 23, 2012, 02:00:08 pm »
Ok, I'll follow your directions.
What is very strange to me is that with some pictures (usually jpg) it works correctly, with some other (usually png) it doesn't.
Anyway, I will pre-flatten when in doubt.
Thanks a lot!

Paolo

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1996
  • Karma: 26
    • the graphics lab
Re: PNG opacity not exported to PDF
« Reply #4 on: May 23, 2012, 05:36:41 pm »
mmm... strange: jpg does not support transparencies at all :-)
ciao
a.l.e

 

palmate