Thanks, that fixed the conversion. Now I'm facing a different kind of "corruption", when cutting out part of the posted image via -crop, some of the transparent pixels (ie. color "None") are turned into black:
$ convert -dither none -crop 6x25+0+0 decoration-template.xpm xpm:-
/* XPM */
static ...
Search found 2 matches
- 2013-05-01T01:31:12-07:00
- Forum: Bugs
- Topic: Converting from and to xpm corrupts the image
- Replies: 2
- Views: 2291
- 2013-04-29T02:25:02-07:00
- Forum: Bugs
- Topic: Converting from and to xpm corrupts the image
- Replies: 2
- Views: 2291
Converting from and to xpm corrupts the image
Converting from and to xpm corrupts the image, that is it alters the colors introducing "noise", e.g. using convert from and to xpm which should be a no-op results in this:
$ cat decoration-template.xpm
/* XPM */
static char * decoration_template_xpm[] = {
"28 36 29 1",
" c None",
". c #555753 ...
$ cat decoration-template.xpm
/* XPM */
static char * decoration_template_xpm[] = {
"28 36 29 1",
" c None",
". c #555753 ...