PNG-to-ICO icon indicating copy to clipboard operation
PNG-to-ICO copied to clipboard

PowerShell script that supports Bicubic Sharper algorithm

Open virginviolet opened this issue 1 year ago • 3 comments

By default, Bicubic Sharper will be used for sizes 96px, 64px, 48px, 32px, 24px, and 16px.

If you do not want to add this, I guess I will make a new repository for my fork.

Feel free to kill all my darlings, change anything you want, it's free software.

This could have been made with much lesser change to the code, but I wanted to make it easily customizable, user-friendly, robust, and expandable.

I tried to keep it simple stupid, but I think it's debatable whether I succeeded or not.

virginviolet avatar Sep 24 '24 17:09 virginviolet

To replace the context menu script with this, you can replace the contents of png_to_ico.bat in AppData with this:

@ECHO OFF
POWERSHELL -ExecutionPolicy Bypass -Command "& """%AppData%\PNG-to-ICO\png_to_ico.ps1""" %~f1"

virginviolet avatar Sep 24 '24 19:09 virginviolet

Now that I actually tried running it on a folder from context menu, I'm not satisfied with the final destination directory of the icons. I think it would be better if they were placed in a directory next to the original directory, with (ICO) at the end of the new directory name. It shouldn't be hard to fix. Maybe I'll do that sometime soon.

Also, the console size thing doesn't work properly for me, with the new Windows Terminal. Neither with the batch script nor PowerShell script. I think the size setting makes the file replacement prompt look off too, so, ideally, something should be done there.

virginviolet avatar Sep 24 '24 19:09 virginviolet

PS. You can use my extractor script to easily compare results. Just extract, open folder, and increase thumbnail size to max for the folder (Ctrl+Scroll Up).

virginviolet avatar Sep 24 '24 22:09 virginviolet