From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Emacs and ImageMagick-7 issues Date: Fri, 13 Jan 2017 11:54:31 +0100 Message-ID: <0eead875-d46b-1973-0165-5e42a2522ccb@alice.it> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1484304911 26393 195.159.176.226 (13 Jan 2017 10:55:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2017 10:55:11 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 To: eliz@gnu.org, sds@gnu.org, Fabrice Popineau , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 13 11:55:04 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRzVb-0005ve-Us for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2017 11:55:00 +0100 Original-Received: from localhost ([::1]:40333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRzVg-0004m5-4c for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2017 05:55:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRzVX-0004ld-H8 for emacs-devel@gnu.org; Fri, 13 Jan 2017 05:54:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRzVS-0006a7-Lk for emacs-devel@gnu.org; Fri, 13 Jan 2017 05:54:55 -0500 Original-Received: from smtp202.alice.it ([82.57.200.98]:57992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRzVR-0006ZY-S1; Fri, 13 Jan 2017 05:54:50 -0500 Original-Received: from [192.168.1.101] (95.235.230.214) by smtp202.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 58760B09007C0208; Fri, 13 Jan 2017 11:54:47 +0100 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.98 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211242 Archived-At: OK, now I have some more news. Start Emacs and visit a PNG or JPG etc, file. For example foo-01.png. It is displayed correctly and fitted to the windows *width*. Now do the same with another graphical file. For example foo-02.png. It also is displayed correctly and fitted to the window WIDTH. Close foo-02.png and for foo-01.png click Image - Fit to Window Height. It complains with a BELL sound and with the message: > > Assertion failed: (= (cdr size) (- (nth 3 (window-inside-pixel-edges)) > (nth 1 (window-inside-pixel-edges)))), 821, 814 > user-error: Minibuffer window is not active but the file is displayed correctly, at least in appearance! If now one re-visit foo-02.png it is visited in Fundamental mode and with the message: > Cannot display image: ((= (cdr size) (- (nth 3 > (window-inside-pixel-edges)) (nth 1 (window-inside-pixel-edges)))) 821 814) It seems that this build of Emacs does not like "Image - Fit to Window Height". The graphical format (PNJ, JPG..) seems irrelevant.. I did the same steps with my build on GNU/Linux Mint 18.1, on which there is installed ImageMagick-6 not -7. On this system all works as expected without errors/issues... > > Ciao, > Angelo.