New PNG Drawer Icons

miker1264 · 3897

miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #15 on: February 25, 2021, 07:25:39 PM
For those who prefer the Dark Theme I added Charcoal Black Icon Images.  ;)

I wrote a Mask_Icons Batch Processing Function for IconSets. Once it is working correctly I can process many icon images.



paolone

  • Moderator
  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #16 on: February 26, 2021, 05:11:52 AM
@miker


I've sent you an email with all Ken Lester's PNG files (plus maybe some other I added by myself while adding Icaros stuff). Please tell me if you haven't received it.


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3741
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #17 on: February 26, 2021, 05:57:53 AM
For those who prefer the Dark Theme I added Charcoal Black Icon Images.  ;)

I wrote a Mask_Icons Batch Processing Function for IconSets. Once it is working correctly I can process many icon images.

Thanks miker, I will try your software to color my AROS One icons !
For light backgrounds you would also need Font coloring, AROS only uses White font !


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #18 on: February 26, 2021, 08:55:35 AM
@miker


I've sent you an email with all Ken Lester's PNG files (plus maybe some other I added by myself while adding Icaros stuff). Please tell me if you haven't received it.

@paolone

Thank you. I received the zip file. That's an impressive collection of about 1240 images to make 620 icons. I estimate I will have 12 to 14 Colored Drawer IconSets at about 100 icons each for a total of at least 2400 images. We need Batch Processing!

I'm currently working on Batch Processing for converting and assembling Icon Images.

It seems like an elegant solution to a perplexing problem. It's to prevent the "Journey of a Thousand Clicks" so I don't spend a huge amount of time clicking buttons on File Requesters!  ;D
« Last Edit: February 26, 2021, 09:48:32 AM by miker1264 »



paolone

  • Moderator
  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #19 on: February 26, 2021, 09:58:33 AM
@miker


I've sent you an email with all Ken Lester's PNG files (plus maybe some other I added by myself while adding Icaros stuff). Please tell me if you haven't received it.

@paolone

Thank you. I received the zip file. That's an impressive collection of about 1240 images to make 620 icons. I estimate I will have 12 to 14 Colored Drawer IconSets at about 100 icons each for a total of at least 2400 images. We need Batch Processing!

I'm currently working on Batch Processing for converting and assembling Icon Images.

It seems like an elegant solution to a perplexing problem. It's to prevent the "Journey of a Thousand Clicks" so I don't spend a huge amount of time clicking buttons on File Requesters!  ;D


Well. If you could diff some way a custom drawer icon (for instance, the prefs drawer icon) from a common folder one, then you should already get the list of changing pixels, and those (and only those) should get a white mask. Then you can substitute gamma only to leftover pixels. I just can't wonder what tool may do this job for you in an automated shape.


But yeah, the journey of a thousand clicks is like a journey to hell.


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #20 on: February 26, 2021, 10:43:03 AM
Here's how the Batch Processing works. When you consider what is involved it's an elegant solution and everything fits.

It's all based on Copy_Mask which uses three byte arrays of pixel data. It compares the Mask to the Original and Copies All Pixels Under the Mask to the Destination byte array. So we start by setting up file paths for critical elements such as the Templates Folder, the location of BaseImages and Output Files Folder. This is a new Icon Image Processing Method, like an assembly line. There are many "if(EXISTS)" and Error Checking.

We select the IconList in the IconSet Directory which has Subdirectories of BaseImages and Output Files. Templates with Originals and Mask Files is above the IconSets. We get the Path from the filename. We read the IconList into a string array. The filename on the list is the same for originals and corresponding mask files. So we process in pairs, first we use png datatype to get a byte array (bmpData) of the original image. Then we do the same for the mask (bmpMask). Finally, we select the BaseImage (bmpDest). There are two BaseImages in a subdirectory of the same name for each IconSet. They are simply the Default Colored Drawer Images for Normal and Selected. We keep re-using the two BaseImages to make icons.

So now we have all three byte arrays. Time to call the main function. Copy_Mask(bmpData, bmpMask, bmpDest, width, height, bytesPerPixel); It produces a beautiful icon image using the BaseImage. The resulting image gets save to the Output Files Directory. It processes images in pairs. When the pair is finished and saved it calls Join_Icon using Copy_File and Copy_File_Appent to make Icons that are saved to another output directory. I will probably set up three folders for processing each with an IconList. AROS, SYS, and MISC. The AROS folder is for main system drawer icons. SYS is for def_icons but def_drawer is the exception. It's just a copy of the BaseImage. And MISC is for all other drawer icons to process.

It's very elegant that way. The Templates Directory resides above the Colored IconSets. It contains only the Originals of all drawer images and their corresponding mask images. In the individual IconSets Directories for example "Blue Icons" or "Green Icon" there are only two Subdirectories - BaseImages and Output Files. Under Output Files are Images and Icons. So in reality we only set up a new Colored Iconset Directory and copy in the Colored BaseImages and push the Start Buttom. Batch Processing! Lots of Colored Icons. Nice!

 :) :) :)
« Last Edit: February 27, 2021, 01:01:15 AM by miker1264 »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #21 on: February 28, 2021, 02:00:56 AM
Hot off the presses!!

Batch Processing Three Sets...

The graphics program produced in a few minutes what it would have taken me several hours to do by hand.

I want to do the charcoal set just for fun.  ;)




miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #22 on: February 28, 2021, 02:22:22 AM
Actually, I believe the Charcoal Black Icons will look super cool.  8)

I just made these 28 images in about two minutes. The Batch Processing will be able to handle several directories at a time. Did I mention that C Code is super fast? I'm very pleased.  :)

But there will be more delicious flavors.
« Last Edit: February 28, 2021, 02:26:35 AM by miker1264 »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #23 on: February 28, 2021, 10:09:45 AM
@paolone

Just for fun I will collect all the custom drawer icon images from the large set you sent me. I will make mask templates and produce complete sets of colored icon images.

As for a colored icon theme there are additional icon images such as trashcan, etc that could be added to the colored batches.
« Last Edit: February 28, 2021, 08:06:04 PM by miker1264 »