codingteam / pacmacs.el

Pacman for Emacs
Other
91 stars 9 forks source link

ImageMagick pixel enumeration parser #216

Closed rexim closed 8 years ago

rexim commented 8 years ago

Is part of #41

Maybe it's gonna be a utility or something

rexim commented 8 years ago

I just found a nice little feature of ImageMagick. If you invoke convert like $ convert <image> txt:- it will dump to stdin info about image pixels

# ImageMagick pixel enumeration: 1,3,255,rgb
0,0: ( 38,209,145)  #26D191  rgb(38,209,145)
0,1: ( 31,215,172)  #1FD7AC  rgb(31,215,172)
0,2: ( 51,194, 77)  #33C24D  rgb(51,194,77)

which is much easier to parse with Emacs Lisp than XPM.

I think we can use that feature as an intermediate step for generating sprites in The Infernal Format.

rexim commented 8 years ago

The scope of the issue has changed. Now we need only a parser for ImageMagick pixel enumeration format.

rexim commented 8 years ago

Closed in 5cf1b858b870fe71e48000d8679fd7487d786288