Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell script that supports Bicubic Sharper algorithm #20

Open
wants to merge 42 commits into
base: master
Choose a base branch
from

Conversation

virginviolet
Copy link

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.

Temporary icon name is now set in main code instead of in function
@virginviolet
Copy link
Author

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
Copy link
Author

virginviolet commented Sep 24, 2024

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
Copy link
Author

virginviolet commented Sep 24, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant