vicividivini / google-maps-icons

Automatically exported from code.google.com/p/google-maps-icons
0 stars 0 forks source link

Icon recolorer program source #323

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Great project! 
I desired to pick my own base color for the icons, so I created this program:
iconrecolorer old.png new.png [<basecolor>] [<iconcolor>] [<bordercolor>]

Which recolorers a default 32x37 icon using the given colors.
It even handles the shading between border/base colors and base/icon colors 
correctly.

Ideally I would have enabled user customized recoloring on a website using 
either the entire collection or user provided zip of icons.
Sadly my website is uncapable of running this, so therefore I simply share my 
source code.

Using this source as a base even more options are possible:
- apply "iphone", "50%" gradiants in the background
- icon shadow
- other border styles

Original issue reported on code.google.com by marc.ste...@cwi.nl on 25 Feb 2011 at 8:24

Attachments:

GoogleCodeExporter commented 9 years ago
As a side note: 
agriculture2.png, agriculture3.png and agriculture4.png have no alpha channels, 
so the perceived transparency is fake: it is actually white.

Original comment by marc.ste...@cwi.nl on 25 Feb 2011 at 8:57

GoogleCodeExporter commented 9 years ago
Hello Marc, thank you for your contribution.

I actually wanted to try the script : can I use it on Windows/DOS ? .... on DOS 
command line, it doesn't do anything unfortunatelly I think.

This project is soon to be reborn, with a web-based icon generator (colors, 
borders and all), like your script.

I am going to email you to show you the progress.

Nico

Original comment by nico.mol...@gmail.com on 25 Feb 2011 at 11:41

GoogleCodeExporter commented 9 years ago
Hi Nico,

actually it is a C++ source file and a Makefile to compile on linux.
Building for windows as a command line program is possible but definitely 
tricky as it uses ImageMagick++.
ImageMagick++ was the easiest way I had to read/write pngfiles and manipulate 
pixels.

Marc

Original comment by marc.ste...@cwi.nl on 25 Feb 2011 at 12:16

GoogleCodeExporter commented 9 years ago
Hi there Marc, could you help your Mac friend here to use this tool ? This 
would be huge for our project.

Thanks a lot !

Felipe, from Brazil

Original comment by cont...@temporadalivre.com.br on 18 Jun 2011 at 11:14

GoogleCodeExporter commented 9 years ago
Hello Marc and Felipe,

I let you know that the new site is almost ready, check 
http://mapicons.nicolasmollet.com 

This is a new site that allow custom colors and styles, much like what Marc did 
I think (even if I didn't test your app, Marc).

The only difference is you cannot hotlink the icons : you must download them 
first and host them.

Tell me what you think.

Nico

Original comment by nico.mol...@gmail.com on 19 Jun 2011 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by nico.mol...@gmail.com on 21 Jun 2011 at 5:33