IconPress Icon Maker

miker1264 · 4718

miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
on: July 27, 2022, 09:18:42 AM
This is Icon Press. It "Compresses" or "Presses" two images into an Icon.

Drop either two PNG Images or two ILBM images on the display areas. Normal Image on the left & Selected Image on the right. The images types & dimensions must match.

If you drop two PNG Images then select "Save Icon" it will save a DualPNG Icon. If you drop two ILBM Images then select "Save Icon" it will save a Classic Icon with OS3.5 Extension. If you drop two PNG Images then select "Save ARGB" it will save a Classic Icon with OS3.5 Extension & ARGB Data.

It's a Simple Icon Maker that is intended to be very easy to use. This is the next Icon App in the series.  :)
« Last Edit: July 27, 2022, 01:23:32 PM by miker1264 »



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #1 on: July 27, 2022, 09:25:45 AM
wonderfull Miker :)



new123

  • Newbie
  • *
    • Posts: 29
    • Karma: +38/-0
Reply #2 on: July 27, 2022, 02:57:28 PM
Good app. :)



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #3 on: July 27, 2022, 02:58:50 PM
Excellent miker, this tool would have been indispensable even on Amiga OS3


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #4 on: August 21, 2022, 11:29:16 AM
The user interface is complete. It's clean & simple.

Drag-n-drop PNG images or ILBM images to make an icon.

I'm still working on Display Image at the moment.
« Last Edit: August 21, 2022, 12:04:55 PM by miker1264 »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #5 on: August 21, 2022, 12:17:31 PM
Excellent work as always


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #6 on: August 21, 2022, 12:23:58 PM
Excellent work as always

I'm working on another at the same time with the same user interface. It may be done first since it is easier.

It's called Icon split. Drop a PNG or Classic Icon & split it into images which can both be saved to individual files

I'll update that one & future icon apps on the Thread for Icon Toolbox.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #7 on: August 21, 2022, 12:30:54 PM
Interesting, i usually do this with IconEditor


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #8 on: January 29, 2023, 03:09:27 PM
I'm currently working on IconPress icon maker.

The Display_Image works for PNG images. Displaying ILBM images is next. Both will use ReadPixelArrayAlpha to display 32bit image data. Drag-n-drop images or use the command line to send file names. Screenshots to follow.



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #9 on: January 30, 2023, 07:54:49 AM
good Miker!



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #10 on: January 31, 2023, 10:20:36 AM
IconPress icon maker will have command line arguments & switches like IconClone & the other planned icon apps. It also makes it easier for debugging.  :)

IconPress will have a new command line switch  '--t' (int type 1-8) to set the destination icon type. If it works well it will be added to IconClone also. Instead of Save-Classic_Icon the main function will be Convert_Classic_Icon for IconClone.

Currently I'm deep in the weeds of Save_Classic_Icon at the classic Amiga icon structure level. The diskobject, drawerdata, defaultool, tooltypes all need to be written to file based on two ILBM input files. Oh, what fun!  :)

If you are interested here is a link about classic Icons:
http://www.evillabs.net/index.php/Amiga_Icon_Formats





miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #11 on: February 20, 2023, 08:54:16 PM
This is the new user interface for IconPress Icon Maker.

Currently you can drag-n-drop two PNG images and choose Save Icon to save a new png icon or to assign an icon to a file or directory without an icon.

Save Argb and Save Icon for IFF images are currently not implemented. They will be made available in future updates.

The image display areas use the same coordinates for Display_Image & Erase_Rectangle as IconClone so I don't have to re-calculate all the coordinates.  :(

« Last Edit: February 20, 2023, 11:40:31 PM by miker1264 »



paolone

  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #12 on: February 21, 2023, 01:47:29 AM
This is the new user interface for IconPress Icon Maker.

Currently you can drag-n-drop two PNG images and choose Save Icon to save a new png icon or to assign an icon to a file or directory without an icon.

Save Argb and Save Icon for IFF images are currently not implemented. They will be made available in future updates.

The image display areas use the same coordinates for Display_Image & Erase_Rectangle as IconClone so I don't have to re-calculate all the coordinates.  :(


Some suggestions I may give you, since I had to implement most of them in my IconPoser (which basically does the same job):
- preserve original tooltypes when replacing an already existing icon
- add the faculty to add tooltypes (mine can't do that)
- let the use choose the icon type (tool, project, disk etc)
- maybe the option to convert the internal format to different one (ex from PNG to Glow and so on - another thing IconPoser can't do)


Moreover: there's little gain into drag'n'drop ability if wanderer and magellan can't use image thumbnails instead of their def_ icon. You always have to generate them first. Maybe the next thing you may do on Wanderer, when your work on your icon tools is done, is adding this feature so user can browse image collections with ease and drag'n'drop the desired ones into your tools.



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #13 on: February 21, 2023, 04:33:40 AM
This is the new user interface for IconPress Icon Maker.

Currently you can drag-n-drop two PNG images and choose Save Icon to save a new png icon or to assign an icon to a file or directory without an icon.

Save Argb and Save Icon for IFF images are currently not implemented. They will be made available in future updates.

The image display areas use the same coordinates for Display_Image & Erase_Rectangle as IconClone so I don't have to re-calculate all the coordinates.  :(


Some suggestions I may give you, since I had to implement most of them in my IconPoser (which basically does the same job):
- preserve original tooltypes when replacing an already existing icon
- add the faculty to add tooltypes (mine can't do that)
- let the use choose the icon type (tool, project, disk etc)
- maybe the option to convert the internal format to different one (ex from PNG to Glow and so on - another thing IconPoser can't do)


Moreover: there's little gain into drag'n'drop ability if wanderer and magellan can't use image thumbnails instead of their def_ icon. You always have to generate them first. Maybe the next thing you may do on Wanderer, when your work on your icon tools is done, is adding this feature so user can browse image collections with ease and drag'n'drop the desired ones into your tools.

@paolone

All good ideas!  :) Some I had thought of. Some I had not considered.

I planned to include the command line switch --t to set icon type. But selecting tooltypes with a string gadget is good & thumbnails are even better. In order to add more options I would need to add a small menu system to IconPress. The bottom buttons would just become "Quick Action Buttons".

For the main menu items I would consider Icons, Images, Effects. On the Icons menu would be Save Icon, Save Argb, Save OS4, Save Classic,  Select..., About, Exit. On Images menu would be Duplicate First Image, Create Thumbnail, Add Image Frame, Trans Background. On Effects menu would be Darken Selected, Add Gold Glow, Add Green Glow, Add Blue Glow.

Then we could choose the Icon Style to save such as DualPNG, OS4, Classic, etc. Also "Select..." opens the "Select Options window for the user to select icon type, default tool, and tooltypes with radio buttons & strings.

I had planned to add colored glow borders and to use other effects in at least one small icon app but wasn't sure which. Once the Gold Glow Border is added I can use HSL Color Filtering and Color Shifting to produce the other two.

As test cases I'd like to make it interesting by using the famous Amiga picture files associated with Deluxe Paint. The Gold Mask of Tutankhamen & Venus by Botticelli. From them we will make thumbnails then complete app icons.

This app was going to be ambitious using Neuquant Color Quantizing and Saving Classic Icons but now it will be very ambitious! But it will be worth all the effort if it works well.

« Last Edit: February 21, 2023, 09:30:21 AM by miker1264 »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #14 on: February 21, 2023, 10:31:34 AM
Most of the image effects are straightforward. But I haven't attempted to add a glow border using c code. It may involve color distance, overlay masking & alpha blending using HSL to RGB calculations. It's basically a neon glow algorithm.

The Add Image Frame is an effect to add a 1-pixel dark rectangle frame. Then it adds an alpha blended drop shadow using the frame color with a specific offset. For the glow border it will have a larger drop shadow using the glow color instead of a frame color. The techniques are similar.

The thumbnail images use a simple resizing algorithm such as ResizeBilinear to scale the image. I had planned to do something similar for icon images with non-standard sizes so that they would fit in the icon image display areas.
« Last Edit: February 21, 2023, 01:23:07 PM by miker1264 »