From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#39736: 27.0.60; wrong display of scaled checkerd pattern image Date: Mon, 24 Feb 2020 20:05:23 +0100 (CET) Message-ID: <20200224190516.GA69863@breton.holly.idiocy.org> References: <86k14epuj5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="104705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39736@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 24 20:06:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6J3U-000R8I-FL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Feb 2020 20:06:12 +0100 Original-Received: from localhost ([::1]:41174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6J3T-0001vh-EC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Feb 2020 14:06:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35173) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6J3L-0001vY-EB for bug-gnu-emacs@gnu.org; Mon, 24 Feb 2020 14:06:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6J3K-0001ee-AC for bug-gnu-emacs@gnu.org; Mon, 24 Feb 2020 14:06:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6J3J-0001dM-TB for bug-gnu-emacs@gnu.org; Mon, 24 Feb 2020 14:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6J3J-0006oV-Mw for bug-gnu-emacs@gnu.org; Mon, 24 Feb 2020 14:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Feb 2020 19:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39736 X-GNU-PR-Package: emacs Original-Received: via spool by 39736-submit@debbugs.gnu.org id=B39736.158257113326151 (code B ref 39736); Mon, 24 Feb 2020 19:06:01 +0000 Original-Received: (at 39736) by debbugs.gnu.org; 24 Feb 2020 19:05:33 +0000 Original-Received: from localhost ([127.0.0.1]:54107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6J2r-0006nj-00 for submit@debbugs.gnu.org; Mon, 24 Feb 2020 14:05:33 -0500 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:59972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6J2p-0006nT-9j for 39736@debbugs.gnu.org; Mon, 24 Feb 2020 14:05:32 -0500 Original-Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id F18D92B19; Mon, 24 Feb 2020 20:05:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1582571124; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To; l=1247; bh=8oGblQSX1wjldii+yJUJ9qXDt83IIME+MzlkYZlkvpY=; b=iyXPYCiBFKoq9TolaN6EeZGvrW/50PYmjis1hJb74a+eGrunQbLhYVGwG5Kiush4 uaP3JBAFwyFGyZLRAmd+ZyeBmTpYXqxC4bRrUXhsx4uiRFNetJu1ZAE3IfKQ1ikKsAZ tqIKNpGuvp4FNn75ULAz/kHi47dJeYDsaDLZwTBRb4DtPrEwuXZyjBPxUtibJStuSyI CoMnf9zfgI8eM6KkTZEf5mMStllh65ZP1YSoB7FTt4BhG3fujfRr/P6vKerbKnC+pUo iJf5jfZWOe0hSPqcI/V/fQr31pmmDvuJiiVJffRaGPWSvfu6sUUgxk0yckhQawq/jK7 O2eBUCZH4g== Original-Received: by smtp.mailfence.com with ESMTPA ; Mon, 24 Feb 2020 20:05:18 +0100 (CET) Content-Disposition: inline In-Reply-To: <86k14epuj5.fsf@gmail.com> X-ContactOffice-Account: com:241649512 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176445 Archived-At: On Sat, Feb 22, 2020 at 11:26:54PM +0900, ynyaaa@gmail.com wrote: > > A scaled checkered pattern image is converted into a solid gray image. > I expect a large chechered pattern. > Evaluating the form below, a solid gray square is displayed. > > (let ((data "\ > P1 > 8 8 > 01010101 > 10101010 > 01010101 > 10101010 > 01010101 > 10101010 > 01010101 > 10101010 > ")) > (insert-image (create-image data 'pbm t :scale 8))) I believe this is the same as bug#38394. Could you perhaps try the patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38394 > The form below temporally displays another image. > The upper side is gray, the lower-left corner is black, > and the lower-right corner is white. > Once the text cursor gets on the image, the whole image is displayed as > a gray square. > > (let ((data "P1\n2 2\n01\n10") > (buf (generate-new-buffer "tmp"))) > (switch-to-buffer buf) > (insert "\na") > (goto-char (point-min)) > (redisplay) > (insert-image (create-image data 'pbm t :scale 16))) I tried this and couldn’t replicate it, but I believe I had the patch for 38394 applied, so it may be a fix. Alternatively it could be related to the way the cursor is drawn on images. -- Alan Third