Wanderer Icon Exchange

miker1264 · 17946

AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #150 on: December 29, 2021, 04:14:31 PM
Tested and it works fine with the icon.library of AROS One 1.6, I compared the two libraries (Aros One and Icaros) and they are of the same version, only the file size changes, my icon.library is the one included in the last deadwood distro "AROS-20180415-2".


It remains the problem of icons on/off if the icons are in RAM, on HD no problem

The CLI window opened "CON:" I think is only for testing purposes


On Wanderer there is a Bug that I had reported in the past, where on is not possible to delete single icons (without file or associated folder), these icons can be deleted only with Dopus4, these icons can't even be copied or moved!
« Last Edit: December 29, 2021, 04:32:02 PM by AMIGASYSTEM »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #151 on: December 29, 2021, 05:34:54 PM
AMIGASYSTEM

It's good to hear it is working on AROS One x86.

The icons in Ram: don't seem to be a major issue as long as they display & behave properly on disk.

The issue with Wanderer not copying, moving, deleting or renaming unassociated icons has been fixed in newer versions of Wanderer. Not sure if the latest Wanderer has been backported to AROS x86 yet. We might compare versions.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #152 on: December 30, 2021, 12:51:57 AM
miker if it helps I found "Iconverter + sources" to convert many types of icons.

I tried to compile Iconverter on AROS One x86 and it seems to work fine !

https://www.morphos-storage.net/dl.php?id=1661783


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #153 on: December 30, 2021, 01:34:44 AM
miker if it helps I found "Iconverter + sources" to convert many types of icons.

I tried to compile Iconverter on AROS One x86 and it seems to work fine !

https://www.morphos-storage.net/dl.php?id=1661783

What? You don't like "IconClone"?  :P

It seems to deal mostly with Old Icon Formats. The only Old Format I'm interested in is OS3.5 Icons.

I'm having fun with IFFParse Library reading the IFF Chunks from the OS3.5 Icon Files. It should work with PowerIcons also.

Then I will need to find out how to display the "ARGB Data Chunks" when they are present or just display OS3.5 Icon Images as ARGB.  ;)


« Last Edit: December 30, 2021, 03:07:25 AM by miker1264 »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #154 on: December 30, 2021, 02:09:56 AM
I'll use IconClone all my life :D

Iconverter does not serve AROS, I posted the source in case there is some useful information to add to IconClone


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #155 on: December 31, 2021, 07:57:01 AM
Anyone have experience working with IFFParse Library?

I have some code that isn't working but I don't know why. It is reading an OS3.5 Icon File but it can't find the chunks!

Do I need to open IFFParse.Library?  I'm trying Sift.c in RKRM.

There is a working version of IconClone that I will finish up and I'll release it soon. I'm also working on an experimental version.
« Last Edit: December 31, 2021, 10:22:33 AM by miker1264 »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #156 on: December 31, 2021, 08:54:21 AM
No if you are talking about IFFParse.Library code, if you are referring to the use of alloa applications yes!

Experimental version, what news we will find ?


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #157 on: December 31, 2021, 09:04:24 AM
No if you are talking about IFFParse.Library code, if you are referring to the use of alloa applications yes!

Experimental version, what news we will find ?

The experimental version has some advanced features such as dropping OS4.1 PowerIcons & AROS Hybrid Icons & Displaying them & Converting them to PNG Icons.

But I'm having difficulty with the IFFParse code to verify the ARGB Data Chunks. I attached Check_IFFType.c & a Hybrid OS3.5 Icon Sample.

I compiled "Sift.c" IFFParse sample program. When I ran it from CLI on my OS3.5 Icon File it reported an error:

"File Scan Aborted, error -10: Not an IFF file."

Hmmm...because there is old icon data preceding the IFF data it can't parse the file. So I will set file pointer to the IFF Data.
« Last Edit: December 31, 2021, 10:52:43 AM by miker1264 »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #158 on: January 01, 2022, 12:24:08 AM
ParseIFF is working correctly now after some effort.

What I had to do is difficult to explain. It's a custom Hook Parser with a Custom Stream Handler.

The ParseIFF function reads the OS3.5 Icon File to determine if there are ARGB Data Chunks or just OS3.5 Image Data.

I wrote another function to read all the OldIcon data to get the correct offset to the beginning of the IFF OS3.5 Icon Data.

Then I can use IconControl to read the image data or ARGB data to display the images. It's a long process to display these icons.  ;)
« Last Edit: January 01, 2022, 12:42:15 AM by miker1264 »



G-linx

  • Member
  • ***
    • Posts: 112
    • Karma: +28/-0
Reply #159 on: April 02, 2022, 04:12:55 PM
@miker1264

This is a great 'lil utility, thank for making it!

I spent some time using it today, and a lot longer time trying to find where the icons were buried within aros prefs! :)

I have two requests...
Can you tell me where the 'special' drawer icons hide (ie the drawer icons for prefs, system, tools, utilities etc) and also I have found (in aros x86, wanderer) that icons are named def-icons or end with .info. Are there others?

Lastly, it would be nice to have IconClone promoted a bit more, perhaps with a new announcement thread, or at the very least editing the first post with a preamble about it and the download itself. It was very much under the radar for me to find it as a newbie.

Thank you for your time

Retired.. and working harder than ever


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #160 on: April 03, 2022, 11:06:37 AM
.
Can you tell me where the 'special' drawer icons hide (ie the drawer icons for prefs, system, tools, utilities etc) and also I have found (in aros x86, wanderer) that icons are named def-icons or end with .info. Are there others?


Wander works like Amiga OS3, if a file does not have its own real icon, the operating system will assign a default one.

System default icons called def_name type.info can be found in AROS:Prefs\Env-Archive\SYS.

The recognition of the file type and the association of the icon to a file "without icon" is defined by the Datatype/Descriptors.

It is possible to create/add new Def icons to the system, but in this case it would be necessary to new install Datatype/Descriptors as well.

On my AROS One for example, for each image, a specific icon is assigned, by default Wander assigns an identical icon for all image, but also for sounds, archives et....



« Last Edit: April 03, 2022, 04:31:54 PM by AMIGASYSTEM »



G-linx

  • Member
  • ***
    • Posts: 112
    • Karma: +28/-0
Reply #161 on: April 03, 2022, 04:18:41 PM
That's great information, thank you! :)

Retired.. and working harder than ever


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #162 on: April 03, 2022, 05:03:29 PM
@Glinx:
Besides what AMIGASYSTEM already wrote, you can also use XIcon/IconX and/or similar tools to modify behaviour to your liking (not depending on default icons and file type descriptors).

See aminet for those kind of tools.

For AROS ABIv0 i386 i wrote a tool named wbXli (see aros archives) that, in case you add a project icon for your file, can execute any tool for you provided that this tool accepts a file parameter in order to pass the name of the file to the program you wish to associate it with. I wrote wbXcli because it is easier to manage than tools like XIcon/iconX as they require a script to accomplish the same task.


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #163 on: February 05, 2023, 09:34:51 AM
Although other Icon Exchange Apps are available many users may prefer the simplicity of just using Wanderer.

So I have started a new module for Wanderer called "Exchange" to perform an icon image exchange from Wanderer. There will be a new menu item as well.

Icon Exchange will be very similar to using Icon Information and in fact  both use the same basic Zune user interface.

Although I have limited experience writing Zunified Applications this will be my first major Zune module. The Tools directory in Wanderer is where these modules are located. The module "Info" is already there. Maybe after some research & lots of trial & error I can get Zune drag-n-drop to work correctly.  ;)

The "Exchange" module interface will consist of the icon display area on top left just like Icon Information. Then at the top right is the Edit Box for source Icon with a small Browse Button on the right of the box. Below that is the Edit Box for destination icon with the same type of Browse Button. At the very bottom are the standard Zune  buttons "Save" & "Cancel".

Of course this is experimental at the moment to see if it works.
« Last Edit: February 05, 2023, 10:12:16 AM by miker1264 »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #164 on: February 05, 2023, 11:56:01 AM
Hmmm...

In the screenshot you can see that i added a menu item to Wanderer.

I haven't enabled it yet because I have to first link in to call the "Exchange" module.

The new menu item is located just above "Information" on the Icon menu.