Emojimage takes an input PNG image (sorry, JPG lovers!) and outputs it composed of emoji.
Installation
$ gem install emojimage
Command-line
$ emojimage cast FILENAME --output OUTPUT --type TYPE [--size SIZE] [--no-wrap] [--no-transparency] [--blend=RED GREEN BLUE]
Options
-
--output
or-o
— The output filename. Required. -
--type
or-t
— The output type. One ofimage
(PNG only),text
, orhtml
. Required. -
--size
or-s
— Emoji size. Defaults to4
. -
--no-wrap
— Doesn't wrap HTML output with<code><pre></pre></code>
. Disabled by default. -
--blend
or-b
— Color to treat as background when dealing with transparency. This way, the output image can look good on a specific background color. Must be last option. Example:--blend 255 0 0
(blends with red). Defaults to white (255 255 255
). -
--no-transparency
— Converts wholly transparent blocks to an emoji. Otherwise, keeps it transparent. Disabled by default.