[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Ma

From: François Revol
Subject: Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X
Date: Fri, 20 Feb 2015 14:15:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130630 Icedove/17.0.7

On 20/02/2015 13:36, Paolo Bonzini wrote:
> On 20/02/2015 13:18, Peter Maydell wrote:
>> Why not just use the sips --out option to specify a different
>> output file? That way we automatically put the current icon
>> into the executable, and don't have to update a hand-created
>> qemu.rsrc file in git if we change the icon in future (and I
>> bet if we don't have the rules for doing this in the makefile
>> then nobody will remember how to do it).
> I suspect the Windows icon is not a great match for Mac OS X which likes
> to have big sizes (48x48 or 128x128).  If you want to generate the .rsrc
> file automatically, the right source probably would be the .svg file,
> and doing the conversion in the Makefile probably isn't entirely
> feasible.  It would need extra build dependency and rounding errors
> would make it harder to achieve reproducible builds.

And depending on the complexity of the SVG not all methods produce the
same result. Although it was years ago I recall having a hard time
getting gradients to render correctly with ImageMagick. You'll want to
compare the ImageMagick/GraphicsMagick and rsvg (apt:librsvg2-bin on
Debian) outputs.
Although the current ImageMagick seems to work fine on the logo here.
But you'll have to find how to properly specify the size of the SVG (and
not use -scale since it'll resize the bitmap, and make it 128x127).


rsvg-convert -w 128 -h 128 ./pc-bios/qemu_logo_no_text.svg > qemu-r.png

seems to generate a proper png with transparency.

It seems inkscape can do it as well, but it's probably a larger dependency:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]