Giter Club home page Giter Club logo

png2mirc's Introduction

png2mirc

License: GPL v3 Python 2 Python 3

png2mirc allows you to share your pixel art creations with your IRC friends.

png2mirc has been tested with Weechat.

Just Check out this Rainbow Dash PixelArt you can send your to your friends on IRC: rainbowdash

Dependencies

Installation

sudo apt-get -y install python3 pip
sudo pip3 install Pillow
git clone --recursive https://www.github.com/lillypad/png2mirc.git
cd png2mirc
sudo cp png2mirc.py /usr/bin/png2mirc

Creating Art

  • Open Gimp
  • From Gimp open palette.xcf
  • Create a new file the size you like recommended is 40x40
  • Right click "Background" layer and click "Add Alpha Channel"
  • Zoom in all the way then under View Menu click Show Grid then click Configure Grid under the Image menu to 1px by 1px
  • Use colorpicker to select from the palette the colors you like to create your new image
  • All colors not in the colorpalette if put in by mistake will show up as white by default

Sharing Art on IRC

  • Open weechat
  • Join IRC Channel
  • Run /exec -o -norc png2mirc -i examples/rainbowdash_fly.png

If you wish to test your art in IRC before you share it on a public channel with your friends a submodule for hircd is included to run hircd do:

cd hircd/
python2.7 hircd.py --start --foreground --verbose -a 127.0.0.1 -p 6677

Now you should be able to connect in Weechat by doing:

/connect 127.0.0.1/6677
/join #test
/exec -o -norc png2mirc -i examples/rainbowdash_fly.png

hircd is not designed to be secure as it is is just for testing please keep this in mind.

Files Included

  • scripts/mirc.sh - Shows MIRC Color Palette in IRC
  • xterm.sh - Shows xterm-256color standard palette in terminal
  • examples/*.xcf - Gimp project file examples
  • examples/*.png - Example Images
  • examples/*.mirc - MIRC escaped images
  • examples/*.ansi - xterm-256color equivelent ansi art
  • palette/palette.lst - Contains MIRC color codes and their associated RGBA values
  • palette/palette.xcf - Gimp project file to use as a color swatch for your creations

MIRC Palette:
mircpalette

You should be happy I made this as MIRC doesn't even provide a full list of MIRC to RGB values on their site:

Yes, this means I made scripts/mirc.sh then stole the RGB values from the screen one by one.

Features

  • Converts PNG to MIRC escape codes
  • Ability to use your own 10x10 palette for RGB comparison values
Features to Come
  • Color Approximation (Colors not in palette will pick closes neighbor to MIRC RGB color codes)
  • Currently has RGBA support only will soon have RGB PNG support
  • Image Resize
Example Screenshots

RainbowDash Zelda

png2mirc's People

Contributors

lillypad avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.