unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: ynyaaa@gmail.com
Cc: 39736@debbugs.gnu.org
Subject: bug#39736: 27.0.60; wrong display of scaled checkerd pattern image
Date: Mon, 24 Feb 2020 20:05:23 +0100 (CET)	[thread overview]
Message-ID: <20200224190516.GA69863@breton.holly.idiocy.org> (raw)
In-Reply-To: <86k14epuj5.fsf@gmail.com>

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





  reply	other threads:[~2020-02-24 19:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-22 14:26 bug#39736: 27.0.60; wrong display of scaled checkerd pattern image ynyaaa
2020-02-24 19:05 ` Alan Third [this message]
2020-02-24 19:24   ` Eli Zaretskii
2020-02-24 21:39     ` Alan Third
2020-02-26 10:32     ` ynyaaa

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=20200224190516.GA69863@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=39736@debbugs.gnu.org \
    --cc=ynyaaa@gmail.com \
    /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).