GNU bug report logs - #18333
24.3.93; ImageMagick: ICO image in multiple sizes is not shown correctly

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: YAMAMOTO Mitsuharu <mituharu@HIDDEN>; dated Wed, 27 Aug 2014 00:51:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Aug 2014 00:50:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 26 20:50:51 2014
Received: from localhost ([127.0.0.1]:53023 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XMRRq-0007VG-BY
	for submit <at> debbugs.gnu.org; Tue, 26 Aug 2014 20:50:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55607)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <mituharu@HIDDEN>) id 1XMRRl-0007Uy-Tt
 for submit <at> debbugs.gnu.org; Tue, 26 Aug 2014 20:50:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mituharu@HIDDEN>) id 1XMRRb-0005Lt-C7
 for submit <at> debbugs.gnu.org; Tue, 26 Aug 2014 20:50:40 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:52642)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mituharu@HIDDEN>) id 1XMRRb-0005Lm-8P
 for submit <at> debbugs.gnu.org; Tue, 26 Aug 2014 20:50:35 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57204)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mituharu@HIDDEN>) id 1XMRRV-0007gZ-NX
 for bug-gnu-emacs@HIDDEN; Tue, 26 Aug 2014 20:50:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mituharu@HIDDEN>) id 1XMRRQ-0005Hn-ER
 for bug-gnu-emacs@HIDDEN; Tue, 26 Aug 2014 20:50:29 -0400
Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:64959)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mituharu@HIDDEN>) id 1XMRRP-0005Fb-VD
 for bug-gnu-emacs@HIDDEN; Tue, 26 Aug 2014 20:50:24 -0400
Received: from fermat.math.s.chiba-u.ac.jp (fermat [133.82.132.10])
 by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 23EFCC055D
 for <bug-gnu-emacs@HIDDEN>; Wed, 27 Aug 2014 09:50:17 +0900 (JST)
Date: Wed, 27 Aug 2014 09:50:16 +0900
Message-ID: <wloav6u56e.wl%mituharu@HIDDEN>
From: YAMAMOTO Mitsuharu <mituharu@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.93;
 ImageMagick: ICO image in multiple sizes is not shown correctly
User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8
 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8)
 MULE/5.0 (SAKAKI)
Organization: Faculty of Science, Chiba University
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Steps to Reproduce:

1. Build Emacs with the ImageMagick support.

2. Download http://bits.wikimedia.org/favicon/wikipedia.ico and save
   it to "~/wikipedia.ico"

3. $ identify ~/wikipedia.ico

   The result would be:
    wikipedia.ico[0] ICO 16x16 16x16+0+0 32-bit sRGB 15.1KB 0.000u 0:00.000
    wikipedia.ico[1] ICO 32x32 32x32+0+0 32-bit sRGB 15.1KB 0.000u 0:00.000
    wikipedia.ico[2] ICO 48x48 48x48+0+0 32-bit sRGB 15.1KB 0.000u 0:00.000

   Note that the file contains multiple images in different sizes.

4. Invoke Emacs and evaluate the following expression in *scratch*:

    (let (sizes)
      (dotimes (i 3)
	(push (image-size
	       (create-image "~/wikipedia.ico" 'imagemagick nil :index i) t)
	      sizes))
      sizes)

   The expected result is ((16 . 16) (32 . 32) (48 . 48)) or its
   permutation, but the actual one is ((16 . 16) (16 . 16) (16 . 16)).

If you try 

  (dotimes (i 3)
    (insert-image (create-image "~/wikipedia.ico" 'imagemagick nil :index i)))

then you'll observe that larger images are clipped.

				     YAMAMOTO Mitsuharu
				mituharu@HIDDEN

In GNU Emacs 24.3.93.1 (x86_64-apple-darwin10.8.0, GTK+ Version 3.12.2)
 of 2014-08-27 on yamamoto-mitsuharu-no-iMac.local
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
Configured using:
 `configure CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib'




Acknowledgement sent to YAMAMOTO Mitsuharu <mituharu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#18333; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.