feat: support PNG source input in addition to SVG - #3
Merged
Conversation
Switching to PNG logo art required the generator to accept raster sources. - Add `inputPath` as the canonical source option; `svgPath` keeps working as an alias and may itself point at a .png - Accept .svg and .png, rejecting other formats with a clearer error - Only write favicon.svg for SVG sources; a PNG source yields favicon.png and favicon.ico - Link /favicon.png instead of /favicon.svg in meta-tags.html for PNG sources - Warn when a PNG source is smaller than the largest icon (upscaling) or is not square (padding) - Expose isPngFile, isSupportedInputFile, getInputFormat, resolveInputPath, SUPPORTED_INPUT_EXTENSIONS, DEFAULT_INPUT_CANDIDATES - Interactive CLI detects favicon.svg / favicon.png / logo.png as its default - Report inputPath and inputFormat on the result object - Add PNG fixtures (512x512, 64x64, 300x150) and 30 new tests - Bump to 1.2.0 and update README/CHANGELOG Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ThreatCrush Security Scan1 finding(s) MEDIUM: 1
Snippets are redacted; ThreatCrush never prints matched credential material. |
Merged
ralyodio
added a commit
that referenced
this pull request
Aug 17, 2026
1.2.0 was published and then unpublished, so npm permanently blocks republishing that version number. Bump to 1.2.1 so the PNG source input support from #3 can actually ship to the registry. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switching to PNG logo art required the generator to accept raster sources.
inputPathas the canonical source option;svgPathkeeps working as an alias and may itself point at a .png