transparent png => matte png with background color --- inconsistent results
Posted: 2016-03-31T22:13:49-07:00
this will take a little explaining....
i have lots of transparent (mostly png) tiles.
i wrote a script to
- (here's the original tile:)
the top half is the display preview, the bottom is the newly created tile, (applied to the root window with feh).
i have tried many different options (the -transparent option doesn't seem to be doing anything here, the -alpha remove option is only effective in the convert command...), they all either have the same result, or worse, or error out....
how can i get consistent results and fully matte png files?
i have lots of transparent (mostly png) tiles.
i wrote a script to
- preview the tiles by filling a fixed size canvas with the tile, tiled, and a particular background color
Code: Select all
display -size 800x800 -background "#ff5555" tile:tile.png
- if so desired, create a new tile with the background color, make it matte, to be used as a background
Code: Select all
convert tile.png -background "#ff5555" -transparent "#ff5555" -alpha remove newtile.png
- (here's the original tile:)
the top half is the display preview, the bottom is the newly created tile, (applied to the root window with feh).
i have tried many different options (the -transparent option doesn't seem to be doing anything here, the -alpha remove option is only effective in the convert command...), they all either have the same result, or worse, or error out....
how can i get consistent results and fully matte png files?