Getting blank transparent canvas
Getting blank transparent canvas
Quick question: I create a blank canvas with -size 1000x1000 xc:none. On it, I write annotate something. Works perfectly. But for some reason, if I get a blank canvas and do not annotate, it just comes out as a big black square instead of fully transparent. How do I get a transparent canvas? Note that I need a transparent canvas through alpha. I cannot pick a transparent color because I don't know what colors people will use.
Re: Getting blank transparent canvas
Save as a png or gif. jpg does not support transparency.
Re: Getting blank transparent canvas
I am saving as a PNG. In fact, I only use PNGs. I know the transparency works a little because if I write anything--even something very small--it is transparent. But if I just make the transparent canvas and save it, it is a black square.
Re: Getting blank transparent canvas
Strange; I created the canvas in php ( do most of my work in php ) and its clear.
Its shows up as black in the windows thumbnail but when its displayed on a webpage its transparent.
Its shows up as black in the windows thumbnail but when its displayed on a webpage its transparent.
Re: Getting blank transparent canvas
I am using PHP as well (exec). Is it transparent when it shows up in something like Photoshop?
What I do is create a big square, and then I resize it smaller to show it on the web browser. It shows up black. Like I said, though, if I write something little on there, then all of the sudden it is right.
What I do is create a big square, and then I resize it smaller to show it on the web browser. It shows up black. Like I said, though, if I write something little on there, then all of the sudden it is right.
Re: Getting blank transparent canvas
In Gimp I get the grey chequer board indicating transparency.
Here is the image I created - only 100x100
http://www.rubblewebs.co.uk/TESTS/canvas.png
Code: Select all
exec("convert -size 1000x1000 xc:none canvas.png");
http://www.rubblewebs.co.uk/TESTS/canvas.png
Re: Getting blank transparent canvas
Okay, when I save yours, I do see the checkerboard. I even tried the same thing you did (100x100), but all my images come out black (even the ones that don't show up in the browser). The only difference is that I have to exec the full path to convert, but I don't see why that would make a difference.
Re: Getting blank transparent canvas
Thats strange; what if you use -background rather than xc:
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Getting blank transparent canvas
Might be your version of IM. What version are you using? It could also be your browser for display.