How do you export / save-as a drawing to a transparent .png? When I select "export png" I get a side-bar section that gives me a number of options but none for transparency.
OK, well it seems to work when I generate a drawing from within Inkscape but as I have mentioned, I am trying to convert / migrate from CorelDraw to Inkscape. Naturally, in order to do that I need to be able to convert hundreds and hundres, years and years, of corel draw (cdr) files to .svg. Unfortunately, that's where the problem arises.
Not sure that's exactly correct. I convert .cdr to .svg. And for the most part the drawing come in looking just the same as in Corel and editable jast as in Corel.
I export (or am trying) the drawing to .png.
I can't even copy and past and then export to .png.
And you're saying that when you export, the transparency does not come through?
Just to confirm, you are using File menu > Export PNG, right?
All I can do is ask to see an example -- the SVG file, and the PNG. If the SVG has a transparent background, it should be transparent in the PNG. If it doesn't, I can't guess why.
Umm.... Are you opening the PNG and seeing no transparency? Or do you see something like a black background in a file manager or website? File managers, and even some image hosts can't handle transparency well, and don't display such images properly. Even ImageShack used to give me black background for transparent backgrounds. And my file manages does too, sometimes.
No black or other colour backgrounds...but a transpartent png should be able to be posted to a coloured background and have that background show through. All I get is a rectangle of white with the drawing in the center
Well the svg didn't post her like I see it in Inkscape (try again?) but the png did. If it were truely transparent, it would be the black drawing on the grey background.
Well, if I post it to a forum with a coloured background the drawing shows up on a white rectangle.
If I create a drawing in Inkscape (as outlined above with a star) and post it to that self same forum the star is just a star and the coloured forum background shows through. Plus when you import it back into inkscape it comes back in as an .svg file--a format which hardly any forum (except maybe Inkscape) will recognize.
Here's a screen capture of the same Fig36-3 imported back into Inkscape, exported to a...presumably ...transparent .png and posted tyo a forum.
The SVG appears to have a transparent background to me as well. I've also exported it, and have a transparent background.
We have no idea how the other forum handles attachments. If you'd like a lesson about how crazy different forums can handle attachments, you can ask how this forum handles them (omg, it's complicated!). So it's entirely possible that forum does not allow transparency, for all we know. Maybe it's adding the opaque background?
Here's the PNG I exported from your SVG. You can see that it's transparent, because when you mouse over, it gets that icky orange highlight. If it had a white background, you would not see that highlight.
Also, if you click to open it in the lightbox/carousel, you can hardly see it because of the black background of the lightbox/carousel. It's transparent!
DWFII seems to be exporting using the Cairo processs, which does not assign the alpha to the white background..(Save a copy as PNG wil not produce transparency.)
It is essential to use the Export PNG panel Export button to get the transparency.
First, the forum I was posting to is one that I administer so I know it supports transparent pngs.
Second...Tyler...I used the exact same method / sidebar to create the png I attached in post #10. I don't know what the Cairo method is but i used the Inkscape method.
FWIW, I downloaded the png that Brynn attached in #11 and posted it to the forum I have been using to test the proces. Here's the result:
I appreciate the help, I really do, but it's not working for me. Try opening Brynn's png (again post #11) by doing "open file" in a browser. First image is the forum, second is in Firefox using ctrl+o (open file)
Well, first I want to thank you both --Tyler, Brynn--for the help and time you devoted to this problem.
The problem is now solved and I wanted to let you know...as well as express my appreciation.
Turns out the problem was with an extension--Lightbox--that I added to my Forum software...not Inkscape, not CorelDraw, not Windows 10, not the png exportation or conversion filter. Once I edited a .css file, the glitch went away.
How do you export / save-as a drawing to a transparent .png? When I select "export png" I get a side-bar section that gives me a number of options but none for transparency.
Transparency is active, unless there are objects in the background, then "Hide all except selected" can export only those objects with transparency.
OK, well it seems to work when I generate a drawing from within Inkscape but as I have mentioned, I am trying to convert / migrate from CorelDraw to Inkscape. Naturally, in order to do that I need to be able to convert hundreds and hundres, years and years, of corel draw (cdr) files to .svg. Unfortunately, that's where the problem arises.
So you're converting to both PNG and SVG?
Are you saying that when you convert a CDR to SVG, it's not handling the transparency as you expect? Maybe some examples would help?
Not sure that's exactly correct. I convert .cdr to .svg. And for the most part the drawing come in looking just the same as in Corel and editable jast as in Corel.
I export (or am trying) the drawing to .png.
I can't even copy and past and then export to .png.
And you're saying that when you export, the transparency does not come through?
Just to confirm, you are using File menu > Export PNG, right?
All I can do is ask to see an example -- the SVG file, and the PNG. If the SVG has a transparent background, it should be transparent in the PNG. If it doesn't, I can't guess why.
Umm.... Are you opening the PNG and seeing no transparency? Or do you see something like a black background in a file manager or website? File managers, and even some image hosts can't handle transparency well, and don't display such images properly. Even ImageShack used to give me black background for transparent backgrounds. And my file manages does too, sometimes.
No black or other colour backgrounds...but a transpartent png should be able to be posted to a coloured background and have that background show through. All I get is a rectangle of white with the drawing in the center
Well the svg didn't post her like I see it in Inkscape (try again?) but the png did. If it were truely transparent, it would be the black drawing on the grey background.
Here's the Fig36-3.png imported back into Inkscape over a filled rectangle. Transparency is working, it seems.
Have a nice day.
TD
Well, if I post it to a forum with a coloured background the drawing shows up on a white rectangle.
If I create a drawing in Inkscape (as outlined above with a star) and post it to that self same forum the star is just a star and the coloured forum background shows through. Plus when you import it back into inkscape it comes back in as an .svg file--a format which hardly any forum (except maybe Inkscape) will recognize.
Here's a screen capture of the same Fig36-3 imported back into Inkscape, exported to a...presumably ...transparent .png and posted tyo a forum.
The SVG appears to have a transparent background to me as well. I've also exported it, and have a transparent background.
We have no idea how the other forum handles attachments. If you'd like a lesson about how crazy different forums can handle attachments, you can ask how this forum handles them (omg, it's complicated!). So it's entirely possible that forum does not allow transparency, for all we know. Maybe it's adding the opaque background?
Here's the PNG I exported from your SVG. You can see that it's transparent, because when you mouse over, it gets that icky orange highlight. If it had a white background, you would not see that highlight.
Also, if you click to open it in the lightbox/carousel, you can hardly see it because of the black background of the lightbox/carousel. It's transparent!
DWFII seems to be exporting using the Cairo processs, which does not assign the alpha to the white background..(Save a copy as PNG wil not produce transparency.)
It is essential to use the Export PNG panel Export button to get the transparency.
First, the forum I was posting to is one that I administer so I know it supports transparent pngs.
Second...Tyler...I used the exact same method / sidebar to create the png I attached in post #10. I don't know what the Cairo method is but i used the Inkscape method.
FWIW, I downloaded the png that Brynn attached in #11 and posted it to the forum I have been using to test the proces. Here's the result:
I appreciate the help, I really do, but it's not working for me. Try opening Brynn's png (again post #11) by doing "open file" in a browser. First image is the forum, second is in Firefox using ctrl+o (open file)
Well, first I want to thank you both --Tyler, Brynn--for the help and time you devoted to this problem.
The problem is now solved and I wanted to let you know...as well as express my appreciation.
Turns out the problem was with an extension--Lightbox--that I added to my Forum software...not Inkscape, not CorelDraw, not Windows 10, not the png exportation or conversion filter. Once I edited a .css file, the glitch went away.
Appreciate it.