IconClone Icon Exchange

miker1264 · 71632

Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #30 on: July 09, 2022, 12:48:13 PM
ok Miker Thank you :)



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #31 on: July 09, 2022, 12:55:55 PM
For IconClone version 1.08 I'm working on some updates.

It will be able to display OS35 or OS41 Icons or PNG Icons. It will also provide a visual clue of an icon style mismatch.

I'm currently working on a method to display OS35 icons. For example using IconControl from Icon Library I can get the planar image data from the GlowIcon. But in order to display it as a 32bit image like the others it has to be converted.

The function ReadOS35_by_datatype creates an empty ilbm datatype in memory. We then fill in the data such as values for the BMHD and CMAP. Then we copy the the planar image data to the bitplanes of the planar bitmap. As the last step we use ReadPixelArray to request 32bit ARGB data that can then be displayed in the raster port.

Whew! Sounds easy doesn't it ?



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #32 on: July 09, 2022, 01:07:38 PM
 :D



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #33 on: July 11, 2022, 01:46:51 PM
The test code for reading & displaying the OS35 GlowIcons is working!

It can also detect an Icon Style Mismatch between Source & Destination.

The visual clue for an Icon Mismatch will be to draw Red & White Colored Rectangles.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #34 on: July 11, 2022, 02:05:15 PM
Great !


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #35 on: July 11, 2022, 03:24:06 PM
These are a sample of the colored rectangles.

The Source is Red and Destination is White. This indicates an icon mismatch because the Source is an OS35 Hybrid icon with ARGB data chunk. And the destination is a PNG icon. Icon Library will simply display both equally well.

But if you're a purist and would like all of your icons the same you might want to know the difference. The way IconClone works is whichever icon style is in Source will be the resulting style for the icon exchange. So we want to make sure Source and Destination are the same such as both PNG Icons, both OS41 Icons or both OS35 icons.

If both icon styles match there won't be any rectangles.

Of course, if you don't mind, then exchange them as you like.  ;)



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #36 on: July 11, 2022, 03:33:10 PM
Perfect, this is very important, it happens that some icons are strange and you can't tell which category they belong to !


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #37 on: July 12, 2022, 05:40:42 PM
Perfect, this is very important, it happens that some icons are strange and you can't tell which category they belong to !

Would it be better to have a message box explaining what each of the mismatched icons actually is ? Or just the colored rectangles as a visual clue ?

The message box will be in addition to the rectangles.




AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #38 on: July 12, 2022, 05:45:37 PM
Yes better the message, the rectangles might suggest some graphic artifacts


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #39 on: July 13, 2022, 06:46:56 PM
All the code for new features for IconClone is complete.

Now I just need to integrate the code into the new version of IconClone for testing and release.

I will plan to post the new version when it's ready on AROS Archives to replace the older version that is already there.



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #40 on: July 13, 2022, 07:37:20 PM
Thank you Miker :D



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #41 on: July 13, 2022, 08:48:28 PM
Thank you Miker :D

No problem.  :)

After IconClone is finished it will be available for AROS 68k, AROS x86 & AROS x86-64 all uploaded to AROS Archives.

The next small Icon App that I have planned is "IconMake" which will be an icon composer/converter. It will feature Drag-n-drop & it will also have two display areas. One on left & one on right. You can drop two icon images & choose Save As from the Menu to save one of several icon styles much like ilbm2icon.

Alternatively you can drop an entire icon & save each image independently or you can save as one of several icon styles. In that sense by dropping icons it acts as an icon converter.

It will be a fun but challenging project to work on.  :)

Eventually all the small icon apps will be part of an app launcher called "Icon Toolbox". Then we can launch any of the icon apps from the single ButtonBar Menu of Icon Toolbox. That should be a nice final icon project to bring it all together.

Each small icon app will also have a command line version so they can be used with scripts. IconClone for example could be used in that way to replace entire icon sets using a script.

Those are my plans so far.






« Last Edit: July 13, 2022, 09:08:23 PM by miker1264 »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #42 on: July 14, 2022, 01:03:37 AM
Great, this is what was needed on AROS for those who use Wanderer, the new App will also be very useful for those who use Magellan and Scalos.

The new IconClone Icon Exchange will be part of the upcoming release of AROS One v1.8, even more packed with new features  ;)
« Last Edit: July 14, 2022, 01:12:28 AM by AMIGASYSTEM »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #43 on: July 16, 2022, 12:22:59 PM
Over the last few days I have incorporated the new code. It has been compiled for x86 & x86-64.

Over the next couple of days I will be testing the various versions including one for AROS 68k.

Hopefully by Monday IconClone version 1.08 will be ready to release.  :)



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #44 on: July 16, 2022, 02:22:02 PM
Thank you Miker :)