|Re: [hatari-devel] OSX Hatari icons (was: Version 2)|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
I don’t know any command line which convert SVG->PNG -> icns !
There is a possibility with Xcode but all size of that picture must be supplied in an Image.xcassets and it seems to me that Cmake can’t treat that.
I’ll see with Jérome the better way to have an icon "disk.icns" for Mac.
> On 11/12/2016 08:26 PM, Thomas Huth wrote:
>> Considering that we have floppy images as .PNG files in the repository
>> already, would it be feasible to create the disk.icns file from the PNG
>> files automatically, so we don't have to carry the binaries twice in
>> the repo? According to
>> it should be possible to use iconutil to create icon files
>> automatically from PNG - could you maybe come up with some CMake rules
>> to do this job? That would be very appreciated!
> Reading the linked documentation, icons need to have specific names
> and reside within specific directory which is easy to do by copying.
> However, there also needs to be some additional sizes:
> and the 2x image files should 144 PPI setting whereas non-2x
> ones should have 72 PPI setting.
> PPI setting can be done with "convert" from ImageMagick:
> convert -density 72 -units pixelsperinch 256x256/apps/hatari.png hatari.iconset/icon_256x256.png
> convert -density 144 -units pixelsperinch 256x256/apps/hatari.png hatari.iconset/icon_128x128@xxxxxx
> The missing 16x16 size needs to be done by hand and is small,
> so whoever does that should add it to Hatari repository.
> 512x512 and 1024x1024 (aka 512x512@2x) ones could be generated
> from the SVG files, at run-time. Is there a good command line
> SVG->PNG converter included with OSX?
> - Eero