06-02-2014, 10:05 AM
(This post was last modified: 06-02-2014, 10:06 AM by Raccoon Sam.)
i dunno if this is helping/derailing/whatever but perhaps some of the more pure icons could be automated? i know that there are several scripting gurus here so tell me if this is feasible or stupid
1. take old icon as input
![[Image: icon_1.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_1.png)
2. overlay empty icon over it
![[Image: icon_2.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_2.png)
3. compare the two and if pixel 1 is the same (± ~2 R/G/B units) in both, output black. If different, output white. continue to pixel 2 until all 12305 pixel have been compared
![[Image: icon_3.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_3.png)
4. disregard the top 31 pixels and use the b/w image as an alpha channel for the original icon
![[Image: icon_4.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_4.png)
5. If the width/height of the output sprite ≤ (148||125) / 2 then double its size with linear interpolation. if too big, keep as it is.
![[Image: icon_5.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_5.png)
6. overlay the sprite to the new bounds and fetch the title from the sheet info and queue it to a dummy approval site where all the ready icons go
![[Image: icon_6.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_6.png)
7. run the script on every goddamn icon and manually approve each the next morning
![[Image: approvalsite.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/approvalsite.png)
probably some other arguments could be added to weed out the false positives but i dunno
edit: i mean there's like a billion icons, i could imagine some automation would help
1. take old icon as input
![[Image: icon_1.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_1.png)
2. overlay empty icon over it
![[Image: icon_2.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_2.png)
3. compare the two and if pixel 1 is the same (± ~2 R/G/B units) in both, output black. If different, output white. continue to pixel 2 until all 12305 pixel have been compared
![[Image: icon_3.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_3.png)
4. disregard the top 31 pixels and use the b/w image as an alpha channel for the original icon
![[Image: icon_4.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_4.png)
5. If the width/height of the output sprite ≤ (148||125) / 2 then double its size with linear interpolation. if too big, keep as it is.
![[Image: icon_5.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_5.png)
6. overlay the sprite to the new bounds and fetch the title from the sheet info and queue it to a dummy approval site where all the ready icons go
![[Image: icon_6.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/icon_6.png)
7. run the script on every goddamn icon and manually approve each the next morning
![[Image: approvalsite.png]](https://dl.dropboxusercontent.com/u/152153442/fordazz/approvalsite.png)
probably some other arguments could be added to weed out the false positives but i dunno
edit: i mean there's like a billion icons, i could imagine some automation would help