sagargp/trollicons — pull request #40 by rfsbraz (2013-01-23 14:27:06+00:00)
Title: Image Processing

I noticed that there are a couple of mirrored images in the Icons, and I also like to use some rage faces in awesome rotating sequences. My first solution was to manually edit and rotate the images, storing them in Icons folder. This solution kept increasing the Icons' folder size and took a lot of effort to rotate or mirror some faces.

I ended up adding some image processing tasks to the rakefile, and it now allows to create new faces that will only be added to the final package. You can do this by simply adding some pre-extensions to the files, such as `.rotate.png` or `.mirror.png`. They can also be chained - `.rotate.mirror.png`. It's relatively easy to add new operations, so if you feel like some new one could be a plus, just say.

I also went ahead and removed all the duplicated mirrored rage faces that I found, and they are now being processed with the pre-extension.

Also the aliases will have an "m" (for mirrored) appended if the icon was mirrored, or a 2,3 or 4, if the Icon was rotated.

Examples:
![Malicious-TrollDadJump](https://f.cloud.github.com/assets/770716/90099/e4054d2c-6567-11e2-98c4-96b25556fb32.png) ![Malicious-TrollDadJump90](https://f.cloud.github.com/assets/770716/90101/e956933a-6567-11e2-9e7e-22c0c7ce40c4.png) ![Malicious-TrollDadJump180](https://f.cloud.github.com/assets/770716/90102/eae9a6ba-6567-11e2-986c-48b38aa7a85a.png) ![Malicious-TrollDadJump270](https://f.cloud.github.com/assets/770716/90103/ec8e1b54-6567-11e2-93f2-a943a7091224.png) ![Malicious-TrollDadJump](https://f.cloud.github.com/assets/770716/90105/f96ec2a6-6567-11e2-8075-25a7d8b34bd0.png)

![Stupidity-HerpDerp](https://f.cloud.github.com/assets/770716/90107/19337ef6-6568-11e2-932d-4a52a1f0fc8a.png) ![Stupidity-HerpDerp90](https://f.cloud.github.com/assets/770716/90108/194cc4b0-6568-11e2-9073-50f3e30b33c4.png) ![Stupidity-HerpDerp180](https://f.cloud.github.com/assets/770716/90109/196bfd62-6568-11e2-9ff3-6ef0bcabf37f.png) ![Stupidity-HerpDerp270](https://f.cloud.github.com/assets/770716/90110/196ffc3c-6568-11e2-9ed0-2b8df574b98a.png) ![Stupidity-HerpDerp](https://f.cloud.github.com/assets/770716/90107/19337ef6-6568-11e2-932d-4a52a1f0fc8a.png)

![Miscellaneous-OmgRunMirrored](https://f.cloud.github.com/assets/770716/90112/79eb1628-6568-11e2-87cc-34e98670d158.png) ![Miscellaneous-OmgRun](https://f.cloud.github.com/assets/770716/90113/8a1e9a60-6568-11e2-94c6-5fee7416b567.png)

And so on.