unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles.bader@necel.com>
To: emacs-devel@gnu.org
Subject: PNG image files with alpha channel
Date: Thu, 08 May 2008 13:46:28 +0900	[thread overview]
Message-ID: <buo8wyljtcr.fsf@dhapc248.dev.necel.com> (raw)

Is Emacs supposed to properly handle an alpha channel in a PNG file?

I vaguely recall that it used to do something halfway reasonable (even
if just merging in the default bg color), but now it seem to simply
ignore an alpha channel.

E.g., using default settings, with a white background, do:

   (insert-image (create-image "image-with-alpha.png"))

[The create-image :background parameter seems to have no effect either.]


If you don't have an alpha-channel-bearing image, try this:

   http://download.savannah.gnu.org/releases/emacs/icons/emacs5-256.png

The "background" around the sphere has an alpha channel that's mostly zero.

Thanks,

-Miles

-- 
Politeness, n. The most acceptable hypocrisy.




             reply	other threads:[~2008-05-08  4:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08  4:46 Miles Bader [this message]
2008-05-08 11:48 ` PNG image files with alpha channel Chong Yidong
2008-05-08 12:05   ` Jason Rumney
2008-05-08 15:02     ` Miles Bader
2008-05-08 15:18       ` Jason Rumney
2008-05-08 15:39         ` Miles Bader
2008-05-08 15:51           ` Jason Rumney
2008-05-08 18:19           ` Chong Yidong
2008-05-09  1:00           ` Chong Yidong
2008-05-09  1:10             ` Miles Bader
2008-05-09  2:35           ` Chong Yidong
2008-05-08 23:47         ` James Cloos
2008-05-09  0:43           ` Miles Bader

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=buo8wyljtcr.fsf@dhapc248.dev.necel.com \
    --to=miles.bader@necel.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).