raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.44k stars 3.14k forks source link

[sips] sips can't convert 1024x1024 images to icns format #14913

Open tborychowski opened 1 month ago

tborychowski commented 1 month ago

Extension

https://www.raycast.com/HelloImSteven/sips

Raycast Version

1.84.2

macOS Version

15.1

Description

The "convert images" extension allows to convert a png image into an icns (macos icon). This works only if the input image is smaller than 1024x1024 (e.g. 512x512 works). The sips command throws an error like this:

Command failed: sips --setProperty format icns "icon1024.png" --out "icon1024.icns"
Error: Unable to write image to file /var/folders/pt/6bk10wb16pq145qb8362myqc0000gn/T/7386AB3C-3126-4175-8817-668937696DDF
Error 13: an unknown error occurred
Try 'sips --help' for help using this tool

The same command throws the same error when run from the terminal. There are 2 options:

  1. Use sip to resize the input to 512 - not ideal as it reduces the icon quality
  2. Use a different method for creating icns, that is described here

References

Steps To Reproduce

  1. Create an image that's 1024x1024
  2. Select the image (in Finder or Desktop)
  3. Open Raycast and run "Convert Images" command
  4. Select "icns" as the output format

Current Behaviour

Error is thrown

Expected Behaviour

No error :-)

raycastbot commented 1 month ago

Thank you for opening this issue!

šŸ”” @SKaplanOfficial @arronhunt @nakaakist @JUSTIVE @patomos you might want to have a look.

šŸ’” Author and Contributors commands The author and contributors of `HelloImSteven/sips` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.