English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 26 May 2023, 09:28   #4141
pixie
Registered User
 
pixie's Avatar
 
Join Date: May 2020
Location: Figueira da Foz
Posts: 424
There's no problems when setting tooltypes and such?
pixie is online now  
Old 26 May 2023, 09:33   #4142
mfilos
Paranoid Amigoid
 
mfilos's Avatar
 
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
Quote:
Originally Posted by pixie View Post
There's no problems when setting tooltypes and such?
The tooltypes etc from the original icons will be lost ofc.
But the way I do it is copy my DualPNG icon, dissect it into 2 PNG images (either with HexEdit or via PeterK's excellent script) then get the images to your PC and edit them, then where ready transfer them back to the Amiga and join them into an icon.
Then you can use CopyIcon to replace the original icon to the new one, maintaining all icon info (tooltypes etc).
mfilos is offline  
Old 26 May 2023, 10:38   #4143
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Quote:
Originally Posted by pixie View Post
Those are pretty massive indeed! xD
Is there any util that allow us to downscale the png icons? I would like to pick those png icons used on Amiga OS 4 and downsize them to AmigaOS 3.2 size but with true colour alpha et all
Yes, you can scale icons up or down and much more with this excellent ImageConverter by Thilo Koehler, ... (script removed, it needs an update)

Just read the supplied syntax from ImageConverter.doc and add some options in my script (like -w 48 -h 48) to the lines with the ImageConverter commands.

Last edited by PeterK; 01 June 2023 at 19:50.
PeterK is offline  
Old 26 May 2023, 11:10   #4144
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Quote:
Originally Posted by mfilos View Post
@PeterK
You did it my friend! No more jagged lines on conversion from OS4 to PNG! YOU DA BOMB!
Ok time for questions now...
The script modifies the original/source icon (for example my SMB icon was 13,844kb and became after convertion 16,516kb. Is that due to the ConvertPNGToOS4 (running in my S-S) that my icons have (due to snapshoting etc)? Opening the icon with HexEditor shows for sure that is not PNG.
Oh dear mfilos, please don't run ConvertPNGtoOS4 or ConvertTrueColor at the same time together with ConvertToPngIcons!

And yes, ImageConverter still modifies the icon images a bit, because it can't get the original ARGB data from icon.library directly. My icon.library only updates the RGB data after merging the image and the background by using the alpha channel values. ImageConverter lets my library write the image twice: once to a white background and once to a black background, and then it recalculates the none supplied alpha values and RGB colors from the differences of these two images. The resulting ARGB data is quite good, but not exact for very low alpha values, because the fading with alpha is some sort of a lossy data processing, you are losing the fractions in the calculations, the colors can only be mixed in 256 steps for each RGB component, not perfectly. But usually, that little difference won't be visible for the user.
Quote:
That's why I always copy the icons I want to convert to RAM: before running your script (not to alter my original icon).
Is there a way we can modify the script in order to get these PNG images to T: pngimages/ without altering the original icon? That will save me one copy to RAM for safety :P
Look into my previous answer for pixie, just comment out the last copy line in my script. The icon path/filename is already stored in the variable $file.
Quote:
As a feature request... ...I would LOVE to be able to make a ToolsMenu entry that would run "ConvertToPNG []" (grabbing the icon path/filename from the selected icon) passing it to the script so I didn't have to run it and select via the requester.
Yes, I may add that Tools/Menu feature to a new script. I also tried to use a tool like DropView already to allow a simple icon drag 'n drop onto an appicon box, but I have some problems with font related errors when I use that tool and I'm still working on passing the filename correctly as an argument to the script with ".key". That's work in process ... there was not enough time yesterday to get it working correctly and reliable.
PeterK is offline  
Old 26 May 2023, 12:34   #4145
mfilos
Paranoid Amigoid
 
mfilos's Avatar
 
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
Quote:
Originally Posted by PeterK View Post
Oh dear mfilos, please don't run ConvertPNGtoOS4 or ConvertTrueColor at the same time together with ConvertToPngIcons!
You know I'm not gonna disable my loving ConvertPNGtoOS4 everytime I wanna export an icon

Quote:
Originally Posted by PeterK View Post
Look into my previous answer for pixie, just comment out the last copy line in my script. The icon path/filename is already stored in the variable $file.
What a noob I am! I haven't seen that last line
That did the trick... all good now

Quote:
Originally Posted by PeterK View Post
Yes, I may add that Tools/Menu feature to a new script. I also tried to use a tool like DropView already to allow a simple icon drag 'n drop onto an appicon box, but I have some problems with font related errors when I use that tool and I'm still working on passing the filename correctly as an argument to the script with ".key". That's work in process ... there was not enough time yesterday to get it working correctly and reliable.
Making a Tools/Menu script would be great Peter.

Thanks for everything
mfilos is offline  
Old 26 May 2023, 13:26   #4146
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,263
Quote:
Originally Posted by pixie View Post
I would like to convert png icons, if needed be I would convert OS4 into png. The thing is I cannot get either OS3 native nor AROS. I did find a video of yours on youtube, but it only showed the app being used, not where to download it.
The developer "PEB " has only Distributed only the OS4 version you will find it HERE.

The AROS and OS3 version were never distributed, you find the AROS version installed on AROS One and IcarOS, while the OS3 version you have to ask the developer !
AMIGASYSTEM is offline  
Old 26 May 2023, 17:14   #4147
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Carlo, I have an IconEditor v1.9 installed here on OS3 and just used it to check the separated alpha channel data and RGB images from the ImageConverter icon conversions. I don't know if it can be distributed, probably not without permission.

On OS4 I also have the old and the 2.0 version installed for tests, but I don't like these huge AISS image collections and these very large Hollywood addons.

And I'm not an icon designer due to my lack of creativity and the missing ambition to do something useful with these nice tools.
Attached Thumbnails
Click image for larger version

Name:	IconEditor_1.9.png
Views:	47
Size:	157.7 KB
ID:	79136  
PeterK is offline  
Old 26 May 2023, 17:49   #4148
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,263
If the developer doesn't distribute it, it means that for some reason he doesn't want to do it, he told me that on OS3 and AROS there was something missing, which I don't remember now, that didn't allow to create icons on OS4 style.

Then in the end even if the AROS and OS3 version can't create Os4 icons, that's fine with me anyway, I prefer DualPNG Icons, which among other things are the ones that work well everywhere.

Regarding "AISS" in fact and a great package, which slowed down a lot the installation of AROS One, for this reason in the Folder "ToolbarImages" I only left the images that the AROS OS and Third Part Applications ulizzano, so only a few tens of images, some I also improved them graphically.

Regarding the reaction of icons, I am not a creative person either, however, by dint of working with images, ideas and creativity come automatically.

Last edited by AMIGASYSTEM; 31 May 2023 at 22:17.
AMIGASYSTEM is offline  
Old 27 May 2023, 13:34   #4149
pixie
Registered User
 
pixie's Avatar
 
Join Date: May 2020
Location: Figueira da Foz
Posts: 424
Quote:
Originally Posted by PeterK View Post
Carlo, I have an IconEditor v1.9 installed here on OS3 and just used it to check the separated alpha channel data and RGB images from the ImageConverter icon conversions. I don't know if it can be distributed, probably not without permission.

On OS4 I also have the old and the 2.0 version installed for tests, but I don't like these huge AISS image collections and these very large Hollywood addons.

And I'm not an icon designer due to my lack of creativity and the missing ambition to do something useful with these nice tools.
It is for 3.9 or is available also for 3.0?
pixie is online now  
Old 27 May 2023, 14:34   #4150
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Sorry, but I don't want to try out an installation on 3.0 or 3.1 now. It will probably not work, because in addition to IconEditor the required AISS and the Hollywood stuff have to support the old OS 3.0, too.
PeterK is offline  
Old 27 May 2023, 14:47   #4151
pixie
Registered User
 
pixie's Avatar
 
Join Date: May 2020
Location: Figueira da Foz
Posts: 424
I asked because I got it from the author and it didn't worked, I guessed it was because I have a 3.1 build
pixie is online now  
Old 27 May 2023, 15:33   #4152
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,263
Quote:
Originally Posted by PeterK View Post
Sorry, but I don't want to try out an installation on 3.0 or 3.1 now. It will probably not work, because in addition to IconEditor the required AISS and the Hollywood stuff have to support the old OS 3.0, too.
Peter IconEditior works fine on OS 3.1, you just need to install the MUI libraries, Hollywood PlugIns and the required AISS images

Last edited by AMIGASYSTEM; 31 May 2023 at 22:17.
AMIGASYSTEM is offline  
Old 27 May 2023, 22:17   #4153
mfilos
Paranoid Amigoid
 
mfilos's Avatar
 
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
Karlo is correct.
The latest version I got from Paul was compiled in Hollywood 9 and it's v2.0.
Paul is a really kind guy that responds rather quicky. His version had issues with OS3.2.2 and P96 3.3.3 but that turned out to be an rtg.library bug which was fixed by a beta I got from Jens (and eventually will be released).
mfilos is offline  
Old 28 May 2023, 14:14   #4154
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
If I understand pixie correctly, he needs the IconEditor on OS 3.0, not 3.1. But many coders don't care for 3.0, since their development kit is for v40, v45 or v47 and then sets the minimum requirements to that version automatically, not checking whether v39 could also be sufficient.

mfilos, I've modified my script a bit now, so it can be launched from the tools menu or a drop box, but multi-selection of a bunch of icons is not supported. If the icon loading per menu fails you will see the "requestfile" again. It works for me with AppMenu.

You have to ensure that the script file, ImageConverter and CopyIcon are in your PATH. Of course, every user can modify the script to adapt it to whatever he prefers, like using "Ram:" or a directory on the harddisk instead of "T:" for the temporary files.

The icon loading with DropView also works in principle, but DropView still has a problem with the font loading for its GUI, the preferences window. It tries to load XHelvetica 11, but that fails with "Error 2" if that font was not already loaded by something else like the font preferences. I have to check whether this is a bug in DropView or maybe a problem with a certain diskfont.library version or something else on my system. Edit: Solution in another post below ...

https://aminet.net/package/util/app/dropview

Last edited by PeterK; 01 June 2023 at 19:52.
PeterK is offline  
Old 28 May 2023, 14:43   #4155
mfilos
Paranoid Amigoid
 
mfilos's Avatar
 
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
Quote:
Originally Posted by PeterK View Post
mfilos, I've modified my script a bit now, so it can be launched from the tools menu or a drop box, but multi-selection of a bunch of icons is not supported. If the icon loading per menu fails you will see the "requestfile" again. It works for me with AppMenu.

You have to ensure that the script file, ImageConverter and CopyIcon are in your PATH. Of course, every user can modify the script to adapt it to whatever he prefers, like using "Ram:" or a directory on the harddisk instead of "T:" for the temporary files.

The icon loading with DropView also works in principle, but DropView still has a problem with the font loading for its GUI, the preferences window. It tries to load Helvetica 11, but that fails with "Error 2" if that font was not already loaded by something else like the font preferences. I have to check whether this is a bug in DropView or maybe a problem with a certain diskfont.library version or something else on my system.

https://aminet.net/package/util/app/dropview

The attachment contains the updated script only.
Script works like a charm mate with ToolsMenu.
I haven't tried Dropview but I wouldn't use it anywayz as I find ToolsMenu rather quick and easy for my taste.
Thanks a lot!
One thing that semi-annoyed me was the filename of exension in png images (image.png, image.png2). Tried altering the script but putting for example image1.png, image2.png doesn't work, so I just rename whenever I transfer the images to my PC (not biggie).
That script definitelly saved a lot of time, plus qualitywise is better and iconsize more precise! Fantastic \o/
mfilos is offline  
Old 28 May 2023, 15:23   #4156
pixie
Registered User
 
pixie's Avatar
 
Join Date: May 2020
Location: Figueira da Foz
Posts: 424
Quote:
Originally Posted by PeterK View Post
If I understand pixie correctly, he needs the IconEditor on OS 3.0, not 3.1. But many coders don't care for 3.0, since their development kit is for v40, v45 or v47 and then sets the minimum requirements to that version automatically, not checking whether v39 could also be sufficient.
It was a slit of tongue, I actually use 3.1. icon.libraryvworks like a charm, with afaos it has some problems though... When I tried to run icon editor from Paul it didn't run, but I haven't a way to know the dependencies

Last edited by pixie; 28 May 2023 at 16:49.
pixie is online now  
Old 28 May 2023, 16:23   #4157
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Quote:
Originally Posted by PeterK View Post
The icon loading with DropView also works in principle, but DropView still has a problem with the font loading for its GUI, the preferences window. It tries to load XHelvetica 11, but that fails with "Error 2" if that font was not already loaded by something else like the font preferences. I have to check whether this is a bug in DropView or maybe a problem with a certain diskfont.library version or something else on my system.

https://aminet.net/package/util/app/dropview
I found a solution for DropView now:

1.) Make sure that you have the "XHelvetica.font" size 11 installed (not just helvetica). There are different versions, also modified fonts, available on Aminet. I took the one from TinyMeter now.

2.) Optional, you could execute Sys:System/FixFonts after the font installation in Fonts:.

3.) Add the following line to your startup-sequence or user-startup:
Code:
LoadResource >NIL: Fonts:XHelvetica/11 LOCK
That fixes the problem of DropView with the Error 2 when you double-click on the app-icon to open the preferences window.

4.) You can change the viewer program in the preferences from "MultiView" to "ConvertToPngIcon" as a CLI script. Save your preferences, and if you like rename DropView to "ConvertIconToPNG" or whatever you like.

5.) Make sure that the locations of ImageConverter and CopyIcon are in your PATH, so that these tools can be found by the script.
PeterK is offline  
Old 28 May 2023, 16:41   #4158
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Quote:
Originally Posted by pixie View Post
It was a slit of tongue, I actually use 3.1. icon.library works like a charm, with afaos it has some problems though... When I tried to run icon editor from Paul it didn't run, but I haven't a way to know the dependencies
AfA_OS uses its own icon_lib.exe in most cases to load and display icons. I'm not a user or fan of AfA_OS and I can't fix the issues of icon_lib.exe. AMIGASYSTEM and mfilos may have more experience with AfA_OS and possible workarounds.

If you want to know the dependencies of a program you can run SnoopDos or install the exe.datatype and then load that program file with MultiView. The exe.datatype shows all required libraries and other resources. And that could end in a chain reaction: the libraries may need other libraries and so on ...
PeterK is offline  
Old 28 May 2023, 16:54   #4159
pixie
Registered User
 
pixie's Avatar
 
Join Date: May 2020
Location: Figueira da Foz
Posts: 424
Quote:
Originally Posted by PeterK View Post
AfA_OS uses its own icon_lib.exe in most cases to load and display icons. I'm not a user or fan of AfA_OS and I can't fix the issues of icon_lib.exe. AMIGASYSTEM and mfilos may have more experience with AfA_OS and possible workarounds.
Well, I just want it for the ttf system, I thought I was running without icon_lib.exe but I guess I was wrong, I took it off now from it's folder, I hope to have it sort out!


Quote:
Originally Posted by PeterK View Post
If you want to know the dependencies of a program you can run SnoopDos or install the exe.datatype and then load that program file with MultiView. The exe.datatype shows all required libraries and other resources. And that could end in a chain reaction: the libraries may need other libraries and so on ...
Nice tip, didn't knew of exe.datatype
pixie is online now  
Old 28 May 2023, 18:32   #4160
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
I never had any demand for TrueType or Antialiased fonts, because my eyes are so bad already, that I can't see anything clear and sharp, so they are doing the job of antialiasing perfectly for free.

But there is also a very simple solution for Antialiased fonts, a patch written by Stephan Rupprecht. It just merges the text color with the background for the surrounding pixels. It works with any bitmap font already. aafont.lha:

https://www.stephan-rupprecht.de
https://www.stephan-rupprecht.de/downloads/aafont.rea

If you don't like it, you could ask mfilos for his AfA_OS solution. He also just uses the TrueType font support, but don't has to active icon_lib.exe anymore.
PeterK is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
ClassicWB Full and icon.library 46.4 Retroplay project.ClassicWB 8 05 August 2018 13:57
WB library conflict/versions Amiga1992 support.Apps 3 22 July 2010 18:47
PNG Icon to Color Icon Converter? Leandro Jardim request.Apps 1 24 May 2010 04:39
What's the latest version of icon.library for OS3.9? NovaCoder support.Apps 3 30 June 2009 15:43
Requesting icon.library v44+... nikvest request.Other 2 16 September 2007 01:58

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:10.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16472 seconds with 13 queries