GNU bug report logs - #47036
27.1; XBM file image cannot be resized with :width and :height

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: ynyaaa@HIDDEN; Keywords: confirmed; dated Wed, 10 Mar 2021 09:24:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 47036) by debbugs.gnu.org; 10 Mar 2021 15:10:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 10 10:10:41 2021
Received: from localhost ([127.0.0.1]:51559 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lK0Tx-0003sw-94
	for submit <at> debbugs.gnu.org; Wed, 10 Mar 2021 10:10:41 -0500
Received: from quimby.gnus.org ([95.216.78.240]:35604)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1lK0Tw-0003sh-63
 for 47036 <at> debbugs.gnu.org; Wed, 10 Mar 2021 10:10:40 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=lMJqDPCsjd1ljboaaKdiv/NRjN/1Bn5+Qhwgie0Pv7E=; b=nUV1IoMr9ED3suc93vCket9lFG
 skemmKTutCbw2idDnQo+oOtl+SEu300w7lsoSsIlZXefd9dbaoIjMAQuCl5FFQaXAa6g6IwoZ++X9
 tamtaPUiI6JpRi1EkKJlghtE6RK6t5BJatvV1DK6sOIwJ4kDq/Z8ZKB2i3XsKYTwqGTw=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1lK0Tn-0004aU-P3; Wed, 10 Mar 2021 16:10:34 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: ynyaaa@HIDDEN
Subject: Re: bug#47036: 27.1; XBM file image cannot be resized with :width
 and :height
References: <86wnuf1hwt.fsf@HIDDEN>
X-Now-Playing: Siouxsie and the Banshees's _Join Hands_: "Premature Burial"
Date: Wed, 10 Mar 2021 16:10:30 +0100
In-Reply-To: <86wnuf1hwt.fsf@HIDDEN> (ynyaaa@HIDDEN's message of "Wed,
 10 Mar 2021 18:23:30 +0900")
Message-ID: <8735x3jb89.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  ynyaaa@HIDDEN writes: > Evaluating the form below, XBM
 image with :height property is not > displayed in the first and second
 inserted
 line. > > (let ((img1 (find-image '((:file "gnus/gnus.xbm" :type xbm :height
 100)))) > [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 47036
Cc: 47036 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -1.0 (-)

ynyaaa@HIDDEN writes:

> Evaluating the form below, XBM image with :height property is not
> displayed in the first and second inserted line.
>
> (let ((img1 (find-image '((:file "gnus/gnus.xbm" :type xbm :height 100))))
>       (img2 (find-image '((:file "gnus/gnus.xbm" :type xbm :width 100))))
>       (img3 (find-image '((:file "gnus/gnus.xbm" :type xbm))))
>       (img4 (find-image '((:file "gnus/gnus.xpm" :type xpm :height 100 )))))
>   (insert "with :height\t")
>   (insert-image img1 "ALTTEXT1")
>   (insert "\nwith :width\t")
>   (insert-image img2 "ALTTEXT2")
>   (insert "\nwithout :width or :height\t")
>   (insert-image img3 "ALTTEXT3")
>   (insert "\nXPM with :height\t")
>   (insert-image img4 "ALTTEXT4"))

I can reproduce this problem in Emacs 28, too (with Debian/bullseye).

I guess Emacs should support scaling of xbm images, too, now that we
have native image scaling?  Or is there something in particular with the
xbm code that doesn't allow that?  (I haven't looked at the code yet.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#47036; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 10 Mar 2021 09:23:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 10 04:23:50 2021
Received: from localhost ([127.0.0.1]:48776 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lJv4E-0004hM-8u
	for submit <at> debbugs.gnu.org; Wed, 10 Mar 2021 04:23:50 -0500
Received: from lists.gnu.org ([209.51.188.17]:44008)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ynyaaa@HIDDEN>) id 1lJv49-0004hB-3F
 for submit <at> debbugs.gnu.org; Wed, 10 Mar 2021 04:23:45 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51550)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ynyaaa@HIDDEN>) id 1lJv48-0006D9-RF
 for bug-gnu-emacs@HIDDEN; Wed, 10 Mar 2021 04:23:40 -0500
Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:41776)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ynyaaa@HIDDEN>) id 1lJv44-0003Ca-45
 for bug-gnu-emacs@HIDDEN; Wed, 10 Mar 2021 04:23:40 -0500
Received: by mail-pj1-x102e.google.com with SMTP id
 nh23-20020a17090b3657b02900c0d5e235a8so7156825pjb.0
 for <bug-gnu-emacs@HIDDEN>; Wed, 10 Mar 2021 01:23:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=OxdTFHgd4f08WIBjlneHZR/phGv1F5f6gexZVnmcYn4=;
 b=a+cYK46MEwbyQOI4VQvgeL/oUpzGr6lzh2uqgZJje1vZoDy2kfUSSxzSEXiPt/9RBk
 /gne+OB8YQ9LwIrN0x6j90mLNStk4F+2GhGifed0zKrFdDKmudOop2HVH8hZqGn9HmOj
 fN9+MI+tRvnn/XLmOzXNC8dEVP4ZeBZAqMMC2XobU5pMHj1ZpZ9vvCIJqk6MHlv7GwIa
 +ojSLlRqRkSY1qmFU1Ud9nFM9LnJIljbLUGz1anjLhpnpZbu3+Z1yUYxB9UqmJFwH3os
 US5p2652lE5OdulttjHVbySzSqYbjeV1SSnoS9g1P+uTHdEym+DFvlTl2OPqvKsq+kdq
 8ddA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=OxdTFHgd4f08WIBjlneHZR/phGv1F5f6gexZVnmcYn4=;
 b=ET5L5XFueDQMUQmCUTYRFlti8A0N/ZzDoLq/P5lCbzvpqXJxzQYshljihT812syhfi
 C3620wlmLg4Hmx/7kowfnDAUJ4DL4PrDcHgEylYnacfKVHr/Ju8mysFFMcniRMFLORp9
 XmkEdon7MM3vuNFNyz+Reff6RhiWowbXlpNPfubzfldY5rgYDtlRmC1bBvbQxDFg9Af9
 cdMiW/9h9Jwh4iff3fOz2uBZeUTa1/w3QxbSbaXcd4Go6AYYvJVIW9kxnJbqB0eURc7f
 qZT++snDcs4y26UiN7OwiH1UwdanxlI0RxN8QxpEi0m3DKp0L6D/IMJCWus0bwFRPNuj
 OyLQ==
X-Gm-Message-State: AOAM533goL1H8TJz46n++Dxr+O/gM1shICqOzIQyWeBwTU+TL0aPQHE7
 c04Aq/i+JH6fXThfXPcrCOtRa0I2HIc=
X-Google-Smtp-Source: ABdhPJyML3UK8ioqziL8kTl9YOLsodOrTJRXOXPhY/+DYlxs2ys3DCaIp7KkMPz6u1P4Du4tC9+Edg==
X-Received: by 2002:a17:90a:a616:: with SMTP id
 c22mr2577589pjq.94.1615368214228; 
 Wed, 10 Mar 2021 01:23:34 -0800 (PST)
Received: from HP (east42-p109.eaccess.hi-ho.ne.jp. [219.121.173.110])
 by smtp.gmail.com with ESMTPSA id q10sm15266957pfc.190.2021.03.10.01.23.33
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 10 Mar 2021 01:23:33 -0800 (PST)
From: ynyaaa@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 27.1; XBM file image cannot be resized with :width and :height
Date: Wed, 10 Mar 2021 18:23:30 +0900
Message-ID: <86wnuf1hwt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::102e;
 envelope-from=ynyaaa@HIDDEN; helo=mail-pj1-x102e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -2.3 (--)


Evaluating the form below, XBM image with :height property is not
displayed in the first and second inserted line.

(let ((img1 (find-image '((:file "gnus/gnus.xbm" :type xbm :height 100))))
      (img2 (find-image '((:file "gnus/gnus.xbm" :type xbm :width 100))))
      (img3 (find-image '((:file "gnus/gnus.xbm" :type xbm))))
      (img4 (find-image '((:file "gnus/gnus.xpm" :type xpm :height 100 )))))
  (insert "with :height\t")
  (insert-image img1 "ALTTEXT1")
  (insert "\nwith :width\t")
  (insert-image img2 "ALTTEXT2")
  (insert "\nwithout :width or :height\t")
  (insert-image img3 "ALTTEXT3")
  (insert "\nXPM with :height\t")
  (insert-image img4 "ALTTEXT4"))



In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32)
 of 2020-08-22 built on CIRROCUMULUS
Repository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.18363
System Description: Microsoft Windows 10 Pro (v10.0.1909.18363.1379)

Recent messages:

Configured using:
 'configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: JPN
  locale-coding-system: cp932

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(gnutls network-stream nsm mailalias smtpmail auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs json map misearch multi-isearch pp
shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config
gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq
byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree
cl-print debug backtrace help-mode easymenu find-func cl-loaddefs cl-lib
term/bobcat japan-util tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win
w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads w32notify w32 lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 65226 14129)
 (symbols 48 7565 11)
 (strings 32 21763 1642)
 (string-bytes 1 693616)
 (vectors 16 13478)
 (vector-slots 8 241604 16054)
 (floats 8 26 277)
 (intervals 56 590 0)
 (buffers 1000 16))




Acknowledgement sent to ynyaaa@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#47036; 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: Wed, 10 Mar 2021 15:15:01 UTC

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