Skip to content

chore: add sips as macOS built-in SVG-to-PNG fallback#71

Merged
singyichen merged 5 commits into
mainfrom
chore/generate-png-sips-support
Jun 9, 2026
Merged

chore: add sips as macOS built-in SVG-to-PNG fallback#71
singyichen merged 5 commits into
mainfrom
chore/generate-png-sips-support

Conversation

@singyichen

@singyichen singyichen commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add `sips` (macOS built-in) as fourth fallback tool in `generate-png.sh`, after Inkscape / librsvg / ImageMagick
  • All tool paths now also generate `icon-colored.png` (512px, transparent background) for GitHub organization profile picture uploads
  • Regenerate `social-preview.png` via sips

Test plan

  • Run `bash assets/logo/generate-png.sh` on macOS without any third-party tools installed — should auto-select `sips`
  • Verify `icon-colored.png` corner pixels are transparent (not white)

🤖 Generated with Claude Code

Review Resolutions

Round 1 — 2026-06-09

  • `assets/logo/generate-png.sh`: Removed `sips` from tool-detection `elif` chain — `sips` does not accept SVG input and would cause immediate script failure under `set -e`
  • `assets/logo/generate-png.sh`: Removed the entire `sips)` case branch from the conversion switch, and updated the header comment and error message to no longer reference `sips`

- Add sips (macOS built-in) as fourth fallback tool after ImageMagick
- All tool paths now also generate icon-colored.png (512px, transparent bg)
  for GitHub organization profile picture uploads
- Regenerate social-preview.png via sips

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation correctly adds sips as a macOS built-in fallback for SVG-to-PNG conversion and ensures all tool paths generate icon-colored.png. The changes follow existing code patterns and maintain consistency across all conversion tools. No blocking issues identified.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for the macOS built-in sips tool to convert SVG files to PNG, and introduces the generation of a 512px icon-colored.png asset across all supported tools. However, the reviewer pointed out that sips does not natively support SVG as an input format, which will cause the script to fail at runtime. It is recommended to remove the sips detection and execution blocks entirely.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread assets/logo/generate-png.sh Outdated
Comment thread assets/logo/generate-png.sh
singyichen and others added 3 commits June 9, 2026 15:25
sips renders SVG at the native width/height, then resamples. With the
previous width="48" height="48", it rendered at 48px and upscaled —
causing blurriness. Setting width/height to 512 renders at full
resolution; smaller sizes are downscaled, which is always sharper.
viewBox is unchanged so the visual geometry is identical.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…son Hyperlegible fonts

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@singyichen

Copy link
Copy Markdown
Owner Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…nput

sips on macOS only accepts raster formats; passing an SVG causes an
"unsupported image format" error which exits the script immediately
under `set -e`. Removed the sips detection block, its case branch,
and updated the header comment and error message accordingly.

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
@singyichen

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@singyichen singyichen merged commit 5c5bb52 into main Jun 9, 2026
8 checks passed
@singyichen singyichen deleted the chore/generate-png-sips-support branch June 9, 2026 08:33
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