From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Does image-converter work under Windows? Date: Wed, 29 Jun 2022 20:29:28 +0300 Message-ID: <83tu835qfb.fsf@gnu.org> References: <82bkubo1a3.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="blaine.gmane.org:116.202.254.214"; logging-data="5495"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 29 19:31:22 2022 Return-path: Envelope-to: geh-help-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 1o6bX7-0001By-Ou for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 19:31:21 +0200 Original-Received: from localhost ([::1]:48054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6bX6-0003gq-5O for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 13:31:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6bVC-0003gU-PW for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 13:29:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6bVC-0004Dp-Gi for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 13:29:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=TzqDv2Mdv4ZZgWe9EGU8bqnw5Rpxf9SdfK8awbHbrbc=; b=qfU5/BpO4BFvpkgMoZqS 7Bgd4bstwlyKMLIWFbsWhOMlBzFA4/ZFCqIigLV8I7U6h9XED4AtnvBaOtmJRp6hfyVGkNdsvcQh1 js5IdOwe6Q39HO+/mM4+uUE0hFzf/fg+gfvdFft0ES9wIuDsM4W7MpWsSlwvVzGJVQqvwZAo3HAop d08im9Tv2CFvrUQCuHv0KjkYjg1gQGq3laomHem1nh6Sw+P+EacM1dCYRgvjF07bdCceLcOmwlE5I BciZKjRQ6yHOSW0v+KkpdH6W38JdT2Zx260sA4I0uYLju2ZhfkY3Q52fGMw6HfavBD+6VrefBd/jz AMYEpPA+xYC6jA==; Original-Received: from [87.69.77.57] (port=3527 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6bVC-00031S-01 for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 13:29:22 -0400 In-Reply-To: <82bkubo1a3.fsf@gmail.com> (message from Pascal Quesseveur on Wed, 29 Jun 2022 18:57:40 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138202 Archived-At: > From: Pascal Quesseveur > Date: Wed, 29 Jun 2022 18:57:40 +0200 > > and if I visit the sunraster file I get the following error in the > Messages buffer: > > Not a PNG image: ‘(image :type png :data \211PNG > ^Z > ... > `\202 :scale 1 :max-width 640 :max-height 544 :format nil > :transform-smoothing t)’ > > Did I miss something? Please report this as a bug: I suspect we don't bind coding-system-for-read to prevent EOL conversion when we read the produced PNG data. The signature of a PNG image should have a CR character after "PNG" and before ^Z, and that is missing according to the error message.