.png file is not transparent

Show off your finished Inkscape work.
nadarajan
Posts: 4
Joined: Thu Oct 28, 2010 1:19 pm

.png file is not transparent

Postby nadarajan » Fri Oct 29, 2010 8:33 am

I have created a round cornered rectangle and exported the image as .png. When I used the image on a website, the edges around the corners are not transparent. For example, if the web page background is green and the inside of the rectangle is white, the small edges out side the corners show as white instead of the green. I was under the impression that .PNG files are trasparent. Please let me know how to resolve it.

Thanks

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: .png file is not transparent

Postby microUgly » Fri Oct 29, 2010 9:22 am

IE has poor support for transparent PNGs. More recent versions are better, but I believe even IE8 has its quirks. So if you're using IE, try a different browser.

If you find the corners are indeed not transparent, make sure your Inkscape document has a transparent background (under File > Document properties).

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: .png file is not transparent

Postby ~suv » Fri Oct 29, 2010 9:29 am

Did you save as "Cairo PNG" or use 'File > Export bitmap…'?

'File > Export bitmap…' is recommended for high-quality bitmap exports (PNG) from Inkscape. The background of the exported PNG file is transparent unless you changed color and/or transparency of the document (canvas) background in 'File > Document Properties > Page: Background'.

nadarajan
Posts: 4
Joined: Thu Oct 28, 2010 1:19 pm

Re: .png file is not transparent

Postby nadarajan » Fri Oct 29, 2010 11:20 am

Thanks for the clarifications. Inkscape correctly exports the .png files with transparent corners. But somehow my image slicer program (ImageCut) makes the corners opaque, even when the cut file type is .png!

Thanks

User avatar
prokoudine
Posts: 186
Joined: Sat Jun 09, 2007 4:32 am
Contact:

Re: .png file is not transparent

Postby prokoudine » Fri Oct 29, 2010 11:59 pm

nadarajan wrote:Thanks for the clarifications. Inkscape correctly exports the .png files with transparent corners. But somehow my image slicer program (ImageCut) makes the corners opaque, even when the cut file type is .png!

Why not slice from Inkscape?
http://libregraphicsworld.org — news and tutorials on free design software

nadarajan
Posts: 4
Joined: Thu Oct 28, 2010 1:19 pm

Re: .png file is not transparent

Postby nadarajan » Tue Dec 14, 2010 3:10 pm

Actually I am looking for how to slice from Inkscape, but couldn't find a good reference. Please let me know if there is a good link.
Thanks

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: .png file is not transparent

Postby brynn » Wed Dec 15, 2010 5:37 am

I know there's a tutorial somewhere, but I can't remember where I saw it. Try searching Tricks and Tutorials forum. And meanwhile, maybe someone else will remember it as well (and know where it is)....

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: .png file is not transparent

Postby ~suv » Wed Dec 15, 2010 6:07 am

Maybe for a start, the description in the Inkscape manual:
Inkscape » Files » Exporting Files » Exporting PNG Files: Slicing a Drawing


Return to “Finished Inkscape Work”