Author Topic: Transparency is being created when saving as a PDF or PNG  (Read 369 times)

April 15, 2019, 05:09:47 AM
Read 369 times

dazzathestag

  • Sr. Newbie

  • Offline
  • **

  • 3
Good day all

I have read several articles about problems in saving svg files to pdf and transparency being lost, however I seem to have the opposite problem. When i view the original svg file in Inkscape it looks fine, the colours are nice and strong and as far as i can see i have nothing turned on to request that any part of the picture is partly transparent. I can save the file and reopen it as it is with no issues.

However when I save the file a pdf document or a png file, its turns certain parts of it semi transparent causing a faded look. The faded look tend to be over to the right of the object in question. As though I had put a gradient colour on - which I haven't. If I open them in photoshop the faded part shows that you can see a chequerboard background behind the faded parts.

It might be a very simple solution but Im lost - it would make more sense to me if it was showing on all file types including the original svg as I would then assume i have got a setting wrong somewhere. The files I have imported into Inkscape to make up the picture are mainly pdf's

Any help much appreciated

Darren
 Problem 1.jpg
*Problem 1.jpg
(261.75 kB . 1300x1379)
(viewed 92 times)
Problem 2.jpg
*Problem 2.jpg
(2121.08 kB . 3543x1303)
(viewed 83 times)
  • 0.92
  • MAC10.14.1

April 15, 2019, 08:48:43 PM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

We would need to be able to look at the SVG file, to figure it out.  Can you share it with us?

It looks like you must have something in there with some transparency.  Maybe a background object or something?  Or maybe something with a layer?  I just can't guess.  I would need the SVG file.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

April 16, 2019, 02:44:16 AM
Reply #2

dazzathestag

  • Sr. Newbie

  • Offline
  • **

  • 3
Welcome to the forum!

We would need to be able to look at the SVG file, to figure it out.  Can you share it with us?

It looks like you must have something in there with some transparency.  Maybe a background object or something?  Or maybe something with a layer?  I just can't guess.  I would need the SVG file.

Home Farm Barns Wall Sign 2 with Photos.svg
*Home Farm Barns Wall Sign 2 with Photos.svg
(21608.61 kB - downloaded 81 times)


Sorry its a big file - i hope there isn't a limit
  • 0.92
  • MAC10.14.1

April 16, 2019, 04:14:00 AM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Hhmm, I can't seem to reproduce the problem by exporting a PNG (of the same H logo you showed).  So far, I haven't found anything in the file that might be causing this.  But others might have better skills for investigating the file.

I notice that everything seems to be grouped twice and masked.  That probably happened during some file conversion, and possibly before you got the file.  Hhm, although it sounds like you've made the file yourself, right?  In any case, neither the groups or masking appears to be really needed (it's just the way that either Inkscape or some other program has handled the conversion).  (Importing the PDFs falls under "conversion", in this case.)

It's possible that removing the masking could help.  But I'm curious about a couple of things. 

I don't think you mentioned exactly how or where you're viewing the images, when you notice the fading.  Are you looking at them all with the same program or browser or viewer?  Do you see the fading when viewing in different ways?  Like for example, try using a PDF viewer, such as Adobe Reader (or whatever you have) and then also try with a browser.  Or if you're viewing in a local image viewer, try looking with something else.  Maybe the images are picking up something from the viewer?

Also, how do you create the PNGs?  The proper way would be to use File menu > Export PNG (not Save As > cairo png).

Maybe someone else will have a different idea?
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

April 16, 2019, 06:36:14 AM
Reply #4

dazzathestag

  • Sr. Newbie

  • Offline
  • **

  • 3
Thank you Brynn - your time is much appreciated

It seems as though your thoughts may have pointed me in the right direction. To clarify the fading issues was happening however I viewed them ie safari or Adobe viewer.

However I was saving the files as "Save as" and then choosing to save them as pdf. Or PNG when i tried that option. However as you point our using the export as PNG seemed to have solved the issue, I then managed to open the .png file in photoshop and save it as a pdf and all was fine. So just to clarify for future

When would you use the option to Save as, as opposed to export PNG, i guess those options are there for a reason ?

Is PNG the preferred option when say emailing an SVG file to say a printer or to share with someone else, does PNG have advantages - I have always used PDF and hence why that was the route i was taking ? ( although to be frank I don't have too much experience so I just went the way i knew ) ?

Many thanks

Darren
  • 0.92
  • MAC10.14.1

April 16, 2019, 07:06:00 AM
Reply #5

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
However I was saving the files as "Save as" and then choosing to save them as pdf.

Oh, well that at least explains part of the problem.  I don't know why the cairo png was creating that fadeout effect, but it must have started there.  Maybe it didn't know what to do with the masking?  I'm not sure.

You would never use Save As cairo png.  It will be removed soon (already has been removed in the development version).  (Removed because too many people were using it without really understanding what it's for - just like you.  You were definitely not alone!)

The preferred option for sending something to a printer is to ask the printer what format they require or prefer.  Printers often have their own preference for which format they use, based on their own experience, and often based on their hardware.  If they want an SVG file, you can email an SVG file.

All the different file formats have their own pros and cons.  PDF is usually used for creating professional documents, and for professional printing.  In fact, Inkscape's native printing capability is so basic, that we often suggest users save as PDF and print from their PDF viewer (if they need anything more than a very basic print).

Also, different formats support vector contents differently.  PNG is strictly a raster format, and you would never use it if your project requires vector graphics.  Some formats are strictly vector, some strictly raster, and there are a few (such as PDF and SVG) which can contain both raster and vector contents.

Wikipedia probably has some basic info about comparing the graphic file formats.  Let's see....  Maybe you want to bookmark this:  https://en.wikipedia.org/wiki/Graphic_formats
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann