![]() |
![]() |
#4181 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 69
Posts: 8,062
|
Sorry PeterK, I would like if possible a little help with an application to change the Icon type on AROS (at the moment there is nothing on AROS x86 that does this, let's wait for miker to do it)
On Aminet I found "seticontype" which includes the sources in "C", I tried to compile it on AROS One x86, the binary works fine with standard Amiga icons, but it doesn't work with DualPNG icons, can something be added in the source (that I can do) to make it compatible with DualPNG icons? http://aminet.net/package/util/wb/seticontype |
![]() |
![]() |
#4182 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,289
|
Although I like Eva very much
![]() But unfortunately, PNG icons are containing only PNG data and chunks. So, if a program tries to change the icon type by writing directly to the DiskObject offset $30 (do_Type) it can only trash a PNG icon structure. The same thing has happened already with the AsimCDFS filesystem by writing the icon position directly into the .info file. We had a discussion here some years ago. No, PNG icons don't have a fixed position for the icon type data. That is stored somewhere after the first IDAT chunk in the icOn chunk, but you have to parse the whole PNG structure and the icOn chunk to find out where it is exactly stored. Last edited by PeterK; 30 May 2023 at 19:45. |
![]() |
![]() |
#4183 | |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,289
|
Quote:
And I also did some tests with icon scaling by just adding the necessary options to the two ImageConverter lines in my script: for example "-w 64 -h 64" would change the size of all icons to 64 pixels width and/or height by keeping the aspect ratio. If you don't want to preserve the aspect ratio but prefer always exactly the specified dimensions then also add the option -force. Read the ImageConverter syntax for more available options. |
|
![]() |
![]() |
#4184 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 69
Posts: 8,062
|
I was asking this because a similar program "IconType" on OS3/AROS 68k can do this !
Last edited by AMIGASYSTEM; 31 May 2023 at 22:17. |
![]() |
![]() |
#4185 | ||
Registered User
Join Date: May 2020
Location: Figueira da Foz
Posts: 214
|
Quote:
![]() Quote:
![]() |
||
![]() |
![]() |
#4186 | |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,289
|
Quote:
Don't ask me! No, I'm not a tool coder to do that, although I know a very little bit about C programming, too. ![]() |
|
![]() |
![]() |
#4187 | |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,289
|
Quote:
But the icons in the PNG and the OS4 drawers are still in their original TrueColor format with a real alpha channel. |
|
![]() |
![]() |
#4188 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 69
Posts: 8,062
|
|
![]() |
![]() |
#4189 | |
Registered User
Join Date: May 2020
Location: Figueira da Foz
Posts: 214
|
Quote:
![]() EDIT: This happens only when I do batch convert (pick a folder a let it convert all the icons) if I pick one given icon it works fine. ![]() Last edited by pixie; 31 May 2023 at 09:38. |
|
![]() |
![]() |
#4190 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,289
|
No sorry, but multi-selection of a bunch of icons is not supportrd by the script, because then it would have to handle an array of arguments. Too much work for a lazy guy like me
![]() It's not yet a ChatGPT proggy, maybe in some years ... ![]() ... be patient, one icon at a time is enough ... Hmm, an icon height of 49 pixels looks a bit strange for me ?? But the script is ok. |
![]() |
![]() |
#4191 | ||
Registered User
Join Date: May 2020
Location: Figueira da Foz
Posts: 214
|
Quote:
![]() Quote:
In the anexed picture you have on top left os4.1 icon converted, the regular os4 on the right and the 3.2 in the bottom |
||
![]() |
![]() |
#4192 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 69
Posts: 8,062
|
pixie, the icons you converted, do not have the same quality as the original ones, if you enlarge them you will notice stripes.
To do a good job, extract the images with icon editor ! The OS 3.2 icons, they are not suitable for RTG systems, to improve them, see my screenshot, you have to restore them and then create the Glow with icon Editor. Important, the icons must have an outer size "the transparent one" large enough otherwise the Glow will look good. Example an icon with image 44, must be included in a minimum icon of 48, the 4 transparent inches around the image will serve for the Glow, the larger the transparent space the better the quality of the glow will be Last edited by AMIGASYSTEM; 31 May 2023 at 22:17. |
![]() |
![]() |
#4193 | |
Registered User
Join Date: May 2020
Location: Figueira da Foz
Posts: 214
|
Quote:
![]() That's what I did before... But I will try to see what more can it do beside convert images, you told about glow, I will also have to try it. ![]() They do not that's why I picked the bigger OS4 ones and downscaled. Beside the 2nd icon is more then glow being applied, usually it has also a little animation. |
|
![]() |
![]() |
#4194 | ||
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,289
|
Quote:
Quote:
Btw, I never had any such strange WinUAE screenshots with scanline filters. There is an option: "Take screenshots before filtering", but anyway, I don't have any filters activated on my system. |
||
![]() |
![]() |
#4195 |
Registered User
Join Date: Jan 2020
Location: oslo/norway
Posts: 1,579
|
Thanks a lot for this icon.lib
Icons always been a mess on Amiga. Now they are not ![]() I use this library now with A4000 and Rom 3.0 and use Remlib as adviced. |
![]() |
![]() |
#4196 | ||
Registered User
Join Date: May 2020
Location: Figueira da Foz
Posts: 214
|
That I am sure! xD
Quote:
Edit: these newstyle icons seems to be the original ones ![]() Quote:
I'll try -w 48 only, to see if it will scale proportionally. I use lightshot, it let me choose the area I want to take screenshot, it's a transversal app I use for everything. Last edited by pixie; 01 June 2023 at 08:58. |
||
![]() |
![]() |
#4197 | ||
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,289
|
Quote:
1.) The drawer icon was not accepted by your DropView app-icon. 2.) If that fails (same with WB menu) then the file requester appears, which is intended. 3.) I should store the directory of the last access in the script to offer it instead of SYS:. 4.) The filerequester didn't check for a wrong selection (no icon was selected in Prefs) and didn't fail (it should also do that with multi-selection). 5.) Since the requester didn't fail, the Copy command in my script got the drawer Prefs as $file and thus copied the contents of Prefs to T:NewStyle, but none of these icons was processed by ImageConverter and updated with CopyIcon. Quote:
|
||
![]() |
![]() |
#4198 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,289
|
Ok, now you can test my updated script ConvertToPngIcon for ImageConverter by Thilo Koehler and DropView by Steven Eckles or per Workbench Tool-Menu.
I hope, that I didn't add new bugs this time, but as always, I'm too lazy to check everything thoroughly. Important: Please use this script only with my latest icon.library #576 or newer (attached at the first page of this thread). The Aminet version #575 and older libraries still have a transparency mask which causes jagged edges at the image borders. That bug has been fixed in #576. Last edited by PeterK; 11 June 2023 at 02:31. |
![]() |
![]() |
#4199 |
Paranoid Amigoid
Join Date: Mar 2008
Location: Athens/Greece
Age: 44
Posts: 1,979
![]() |
Seems to work just fine Peter! Thanks a lot (thankfully I remembered to comment the "replace icon" line near the end :P )
Dropview in general doesn't seem to work on my installation of 3.2.2.1 (it puts it's AppIcon and drag&dropping things work, but double-clicking it's appicon doesn't open the main window with an error code:2) Thanks so much for your work man ![]() Last edited by mfilos; 03 June 2023 at 23:13. |
![]() |
![]() |
#4200 | |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,289
|
Quote:
![]() Please also have a look into the Readme about the DropView Error 2 or at this page: https://eab.abime.net/showpost.php?p...postcount=4157 It is not so important to open the Dropview GUI for editing the preferences, because when you save your settings it writes them back as tooltypes into the DropView icon (alias ConvertIcon.info for my script). So you can simply edit the tooltypes directly to change the settings without using the preferences GUI. I've seen that you have parentheses problems with another script for icons by EctoOne. The same happens with my script if the filename contains the .bra = "(" and .ket = ")" characters which are used to replace the arguments of the script. Of course, you can change the definitions of .bra and .ket to something else like "<>" or "[]" or "{}" or whatever, but you will always find some argument strings or other reasons for getting conflicts for the argument assignments. Try to replace the .bra and .key values and the parenthesis in "(filename)", but other problems may arise soon. That's a general problem of scripts, I guess. Edit: This was not the reason for the problems with parentheses. That was caused by the List command, misunderstanding these characters as part of some pattern matching. Last edited by PeterK; 06 June 2023 at 11:29. |
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
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 |
|
|