qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "François Revol" <revol@free.fr>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	qemu-devel qemu-devel <qemu-devel@nongnu.org>,
	Programmingkid <programmingkidx@gmail.com>
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	[thread overview]
Message-ID: <54E73386.3000105@free.fr> (raw)
In-Reply-To: <54E72A54.9040807@redhat.com>

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).

OTOH:

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:

http://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-image-magick


François.

  reply	other threads:[~2015-02-20 13:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-18 21:09 [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X Programmingkid
2015-02-19  9:56 ` Paolo Bonzini
2015-02-19 19:34   ` Programmingkid
2015-02-20 12:18   ` Peter Maydell
2015-02-20 12:36     ` Paolo Bonzini
2015-02-20 13:15       ` François Revol [this message]
2015-02-20 16:54       ` Programmingkid
2015-02-20 17:05         ` Paolo Bonzini
2015-02-20 17:32           ` Programmingkid
2015-02-20 17:56             ` Paolo Bonzini
2015-02-20 21:30               ` Programmingkid
2015-02-21 10:05                 ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54E73386.3000105@free.fr \
    --to=revol@free.fr \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=programmingkidx@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).