You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have finally understood why I was getting completely blank png images, as reported in #845 after trying to open the png in different programs: it seems that somehow the image is there, but the alpha channel value is set to 0 for all the pixels (according to gimp's color picker tool), which make the image seem completely transparent
Am I the only person having this problem ???
@doutriaux1 , could you check the properties of the saved png you generate?
When I run the following commands
import numpy as np, vcs
id100 = np.identity(100)
x = vcs.init()
x.plot(id100)
x.png('test_default_png')
I get the following completely blank/transparent image!
If I remove the alpha/transparency with ImageMagick (http://www.imagemagick.org/Usage/masking/#alpha_off), I get a png with the visible image I want! Of course, I'd like to have directly a png I can see :)
convert -alpha off test_default_png.png test_default_png-noalpha.png
The text was updated successfully, but these errors were encountered:
@jypeter we changed the default back to have a non-transparent backaground, you can control this in your version via the foloowing parameter:
x.png(bla, draw_white_background = True)
or
x.png(bla, ignore_alpha=True)
I have finally understood why I was getting completely blank png images, as reported in #845 after trying to open the png in different programs: it seems that somehow the image is there, but the alpha channel value is set to 0 for all the pixels (according to gimp's color picker tool), which make the image seem completely transparent
Am I the only person having this problem ???
@doutriaux1 , could you check the properties of the saved png you generate?
When I run the following commands
I get the following completely blank/transparent image!
If I remove the alpha/transparency with ImageMagick (http://www.imagemagick.org/Usage/masking/#alpha_off), I get a png with the visible image I want! Of course, I'd like to have directly a png I can see :)
The text was updated successfully, but these errors were encountered: