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

Windows icon export improvements. #68828

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Nov 18, 2022

  • Regenerate Windows icon on export to ensure correct icon size order.
  • Add support for using PNG/WebP/SVG files as an icon for Windows exports.
  • Allow using WebP/SVG files as icon for macOS exports.
  • Add option to select generated icons interpolation, and set default interpolation to Lanczos.

Fixes #64073

Now icons won't be blurry regardless of size order in the icon, exporter will reorder it, remove unnecessary sizes and warn is some are missing.
It's also possible to auto generate icon from any Image (also added WebP / SVG for macOS exported, since it should be able to generate icon from any Image as well).

Note: Order of the sizes in the default icon used by the export template must always match order in the static const uint8_t icon_size[] array, if the default icon is updated (e.g., reverted to compressed version), this array should be updated as well.

@akien-mga
Copy link
Member

This could be worth backporting to 3.6 (and maybe 3.5.2) as the blurry icon issue is a regression in 3.5.

Regenerate Windows icon on export to ensure correct icon size order.
Add support for using PNG/WebP/SVG files as an icon for Windows exports.
Allow using WebP/SVG files as icon for macOS exports.
Add option to select generated icons interpolation, and set default interpolation to Lanczos.
@bruvzg
Copy link
Member Author

bruvzg commented Nov 18, 2022

Added missing file extensions for the "console wrapper icon", and an option to select interpolation mode for the generated icons, and set default interpolation to Lanczos for more smooth results.

This could be worth backporting to 3.6 (and maybe 3.5.2) as the blurry icon issue is a regression in 3.5.

I'll do a 3.x backport next Monday.

@akien-mga akien-mga merged commit 35ff5ff into godotengine:master Nov 18, 2022
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

The Desktop Icon of the exported executable is blurry
2 participants