Hi, I wanted to know if it's possible to go from png to txt and then to tmx. I want to convert a png image to a tilemap.
In my case I want to store on the txt file only the data of the rgb part of the png ignoring the alpha/transparent part.
Do you think it's possible?
Or is it possible to go directly from png to tmx?
From png to txt and then to tmx
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: From png to txt and then to tmx
TMX is not a format listed in "magick -list format".
snibgo's IM pages: im.snibgo.com
Re: From png to txt and then to tmx
So is it possible to do a conversion from png to txt separating the colored part from the alpha channel?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: From png to txt and then to tmx
The colour RGB channels with no alpha:
Just the alpha:
Code: Select all
magick toes_holed.png -alpha off txt:
Code: Select all
magick toes_holed.png -alpha extract txt:
snibgo's IM pages: im.snibgo.com