English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 31 March 2021, 07:49   #1
nyteshade
Registered User
 
Join Date: Mar 2020
Location: Boulder Creek / USA
Posts: 43
Icon to IFF or PNG

I've tried a couple of the icon datatype files on aminet and none really seem to work. What would be involved here in opening an icon (i.e. a .info file) and saving the resulting two states as separate images, preferably using datatypes to write the images to disk?

* Anybody know how to read the image data from .info files?

* Anybody got an idea on where to find a tutorial for storing image data to disk using datatypes already installed?

UPDATE: As pointed out below. I failed to mention that I was looking for high or true color icon support. Like how to get OS4 icons to PNG format, as an example.

Last edited by nyteshade; 04 April 2021 at 18:36.
nyteshade is offline  
Old 31 March 2021, 09:46   #2
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
To save the two sides image of the PNG icon you can use Icon Editor, for IFF I don't know "

https://drive.google.com/file/d/1IqE...x3_Gx4Ri5/view
AMIGASYSTEM is offline  
Old 31 March 2021, 13:28   #3
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Btw, Aminet has a nice Search function:

http://aminet.net/search?query=icon+iff

http://aminet.net/package/gfx/conv/icontoiff
PeterK is offline  
Old 04 April 2021, 10:49   #4
nyteshade
Registered User
 
Join Date: Mar 2020
Location: Boulder Creek / USA
Posts: 43
[mention]PeterK [/mention] so the icontoiff doesn’t work with 24 bit or higher icons and fails to write with nearly any dt on 68k (all for me since I can’t find one that works). Also, I did search aminet first and failed to notice this app. Easy to miss stuff there.

Wondering what the next best idea is.

Last edited by nyteshade; 05 April 2021 at 03:23.
nyteshade is offline  
Old 04 April 2021, 10:51   #5
nyteshade
Registered User
 
Join Date: Mar 2020
Location: Boulder Creek / USA
Posts: 43
[mention]AMIGASYSTEM [/mention] IconEd from 3.9 will read icons in up to 256 colors but not 24 or 32 but icons for RTG systems. But it is the closest thing I’ve found so far. Was looking for a good editor for high or true color RTG systems but don’t know of one yet.

Last edited by nyteshade; 05 April 2021 at 03:23.
nyteshade is offline  
Old 04 April 2021, 12:36   #6
ma693541
Computer Wizard
 
ma693541's Avatar
 
Join Date: Aug 2007
Location: Ramberg/Norway
Posts: 928
@nyteshade. I see that from your postings that you are new here at EAB. Welcome. Have you read? http://eab.abime.net/faq.php Please turn off your Tapatalk signature.
ma693541 is offline  
Old 04 April 2021, 12:39   #7
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Quote:
Originally Posted by nyteshade View Post
so the icontoiff doesn’t work with 24 bit or higher icons
You didn't say that you need TrueColor images. There is no standard defined for icons on OS 3.x yet. The TrueColor images that my icon.library uses are still private data.

You could try OS 4.x and the 32 bit icon editors there. Maybe they can do the trick.

Update: On OS 3.x you could at least get the TrueColor images with SGrab from Stephan Rupprecht when you use a TrueColor screen and set the window background color to black. The disadvantage is that it's difficult to cut out the icon images exactly with their correct size.

Last edited by PeterK; 04 April 2021 at 13:46.
PeterK is offline  
Old 04 April 2021, 12:55   #8
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Quote:
Originally Posted by nyteshade View Post
[mention]AMIGASYSTEM [/mention] IconEd from 3.9 will read icons in up to 256 colors but not 24 or 32 but icons for RTG
The software I showed you is not IconEd 3.9 but Icon Editor for OS3, OS4 and AROS, and you use IFF images but PNG images
AMIGASYSTEM is offline  
Old 04 April 2021, 18:16   #9
nyteshade
Registered User
 
Join Date: Mar 2020
Location: Boulder Creek / USA
Posts: 43
Quote:
Originally Posted by ma693541 View Post
@nyteshade. I see that from your postings that you are new here at EAB. Welcome. Have you read? http://eab.abime.net/faq.php Please turn off your Tapatalk signature.

Not new to EAB but I am new to using Tapatalk with it. I think I killed them. Let me know if I have not. And thanks for letting me know. It doesn’t show me the signatures so I was unaware.
nyteshade is offline  
Old 04 April 2021, 18:31   #10
nyteshade
Registered User
 
Join Date: Mar 2020
Location: Boulder Creek / USA
Posts: 43
[mention]AMIGASYSTEM [/mention] you linked a video. Where can I find that icon editor your video depicts? Very nice. I didn’t watch the whole thing in my impatience because it sounded like we were starting with pngs in the description and that’s the end state for me.

I was able to go from PNG to icon using the latest icon.library and using 3.9’s iconed to add glow. But the editor you showed looked really nice.
nyteshade is offline  
Old 04 April 2021, 20:05   #11
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Quote:
Originally Posted by nyteshade View Post
I was looking for high or true color icon support. Like how to get OS4 icons to PNG format, as an example.
As far as I know there is no OS 3.x tool which can do that. The icon editor that AMIGASYSTEM mentioned can only decode PNG icons, if I remember it correctly, and it needs MUI 5 and a lot of other things like AISS installed. It was never officially released for OS3.

I've also tried another tool: ImageConverter from Thilo Koehler. It can read only one image from an OS4 icon and save it as PNG, but it seems always to extract the 2. selected image. I can't find ImageConverter anymore on Aminet or http://www.hd-rec.de
PeterK is offline  
Old 05 April 2021, 02:14   #12
James
Registered User
 
Join Date: Mar 2010
Location: Beckenham/England
Posts: 795
Quote:
Originally Posted by PeterK View Post
I've also tried another tool: ImageConverter from Thilo Koehler. It can read only one image from an OS4 icon and save it as PNG, but it seems always to extract the 2. selected image.
ImageConverter works perfectly for this task, I have been using it for this purpose with my IconMaker scripts for years. AfA has a problem of pushing the image down and to the right by 1 pixel though, causing the bottom and right edge of the icon to be lost. Works great with your icon.library.

Quote:
Originally Posted by PeterK View Post
I can't find ImageConverter anymore on Aminet or http://www.hd-rec.de
The links for ImageConverter and my IconMaker scripts are in this thread:

http://eab.abime.net/showthread.php?t=66213

There is a newer version of ImageConverter here:

https://sourceforge.net/p/amega1/cod...ImageConverter

It requires this library:

https://sourceforge.net/p/amega1/cod...upport.library

You also need zlib.library/z.library for old/new versions.

IconMaker is overkill just for this task, so I have cut it down to just 2 scripts for batch convert or single icon convert - GrabIconImages.lha in the Zone.

Last edited by James; 05 April 2021 at 02:31.
James is offline  
Old 05 April 2021, 02:32   #13
nyteshade
Registered User
 
Join Date: Mar 2020
Location: Boulder Creek / USA
Posts: 43
Icon to IFF or PNG

[mention]James [/mention] thanks so much!!
nyteshade is offline  
Old 05 April 2021, 14:21   #14
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Many thanks, James!

Didn't know that ImageConverter is still in development. Will give it a try soon, and your scripts too.

Indeed, ImageConverter works great. I just made the stupid mistake before to ask it for -img 1 and -img 2, but it starts counting images from zero!

Last edited by PeterK; 05 April 2021 at 18:12.
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
Convert PNG to IFF looks bad + a couple of AGS questions Loki762 support.Other 26 24 April 2020 04:27
Best way to convert BMP/PNG/JPG to IFF? 8bitbubsy support.Apps 26 20 February 2017 22:33
Editing a PNG Icon amiga_user support.Apps 1 14 July 2011 21:32
A program to convert Png to Iff. Image Studio? Retrofan support.Apps 14 18 January 2011 22:03
PNG Icon to Color Icon Converter? Leandro Jardim request.Apps 1 24 May 2010 04:39

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 22:27.

Top

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