From unknown Thu Jun 19 16:21:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10675 <10675@debbugs.gnu.org> To: bug#10675 <10675@debbugs.gnu.org> Subject: Status: 24.0.92; (image-size ...) on "large" images Reply-To: bug#10675 <10675@debbugs.gnu.org> Date: Thu, 19 Jun 2025 23:21:22 +0000 retitle 10675 24.0.92; (image-size ...) on "large" images reassign 10675 emacs submitter 10675 Jambunathan K severity 10675 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 31 00:52:10 2012 Received: (at submit) by debbugs.gnu.org; 31 Jan 2012 05:52:10 +0000 Received: from localhost ([127.0.0.1]:46148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rs6dV-00021T-S9 for submit@debbugs.gnu.org; Tue, 31 Jan 2012 00:52:10 -0500 Received: from eggs.gnu.org ([140.186.70.92]:47290) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rs6dT-000216-0u for submit@debbugs.gnu.org; Tue, 31 Jan 2012 00:52:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rs6d9-0007aH-11 for submit@debbugs.gnu.org; Tue, 31 Jan 2012 00:51:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:36106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs6d8-0007a7-QM for submit@debbugs.gnu.org; Tue, 31 Jan 2012 00:51:46 -0500 Received: from eggs.gnu.org ([140.186.70.92]:56635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs6d6-0003W5-MK for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2012 00:51:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rs6d5-0007ZJ-IR for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2012 00:51:44 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:53794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs6d1-0007Y8-39; Tue, 31 Jan 2012 00:51:39 -0500 Received: by pbaa12 with SMTP id a12so4805293pba.0 for ; Mon, 30 Jan 2012 21:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; bh=Z91YSbJK8KP8/M1lN2FeItmFY2dp+wMbvpyyp6mEUE4=; b=bX13hYByFkIL6myQo8UK//stAfKt/J7C/R9h255nfYu8cY8URKlhLlrjS6HFvlWO52 8cOtkcywyBzTwCXystjTf56bqRwIefLRPFveiC+4C5DB7StG796U4Q30Ytgn87hx+MFA UhJi/qLyVEpN1AZg7vlFi1tCNkFQfJaO9K5nI= Received: by 10.68.221.137 with SMTP id qe9mr2739161pbc.71.1327989097715; Mon, 30 Jan 2012 21:51:37 -0800 (PST) Received: from JAMBU-NETBOOK ([115.242.236.195]) by mx.google.com with ESMTPS id j4sm52853467pbg.12.2012.01.30.21.51.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Jan 2012 21:51:36 -0800 (PST) From: Jambunathan K To: bug-gnu-emacs@gnu.org, Orgmode Subject: 24.0.92; (image-size ...) on "large" images Date: Tue, 31 Jan 2012 11:21:23 +0530 Message-ID: <81y5soxvvo.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) org-odt.el relies on (image-size ...) to determine pixel dimensions of an image. For "large" images, this API returns "false" values. It would be wonderful, if Emacs returns just the true value of the image or nothing at all. On a related note, IIRC, during batch export there is no way I can use create-image + image-size to determine pixel dimensions of the image. Is there a reliable and uniform way to determine size of images that are *never* intended to be displayed. Original issue: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg51014.html My notes: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg51441.html ,---- http://www.mail-archive.com/emacs-orgmode@gnu.org/msg51441.html | Re: [O] [ODT] image scaling overridden by long caption | | Jambunathan K | Mon, 30 Jan 2012 20:59:37 -0800 | | Andreas Leha writes: | | | >>> #+label: fig:baz | >>> #+name: baz | >>> #+attr_odt: :scale 0.5 | >>> #+header: :file baz.png | >>> #+header: :width 7200 :height 3600 :res 600 | >>> #+begin_src R :exports results :results graphics | >>> plot(1:10, 1:10) | >>> #+end_src | | Image that R outputs is 7200-by-3600. | | >> #+begin_src emacs-lisp | >> (list (* max-image-size (frame-pixel-width)) | >> (* max-image-size (frame-pixel-height))) | >> #+end_src | > | > #+results: | > | 3648.0 | 4320.0 | | | Emacs will "refuse to load" images that cannot fit in 3640-by-4320 | area. Note that max-image dimensions is "tightly coupled" with the frame | size. | | >> #+begin_src emacs-lisp | >> (message "%S" (ignore-errors | >> (image-size (create-image "baz.png") 'pixels))) | >> #+end_src | > | > #+results: | > : (30 . 30) | | Instead of loading a large image, Emacs tries to create a "safe" | 30-by-30 pixel area (whatver it is). | | The solution is to instruct Emacs to handle higher image sizes. Just | bump the value of max-image-size. For example, add this to init file. | | #+begin_src emacs-lisp | (setq max-image-size (* 2 max-image-size)) ;; modify scale | #+end_src `---- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 23:14:32 2013 Received: (at 10675-done) by debbugs.gnu.org; 15 Nov 2013 04:14:32 +0000 Received: from localhost ([127.0.0.1]:53105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhAng-0000G0-GZ for submit@debbugs.gnu.org; Thu, 14 Nov 2013 23:14:32 -0500 Received: from mail-pb0-f51.google.com ([209.85.160.51]:39192) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhAne-0000Fh-Fg for 10675-done@debbugs.gnu.org; Thu, 14 Nov 2013 23:14:30 -0500 Received: by mail-pb0-f51.google.com with SMTP id xa7so3026625pbc.10 for <10675-done@debbugs.gnu.org>; Thu, 14 Nov 2013 20:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=34RliMuq46GYZpNAJ9q5wgb5qGmLaLD6QroaM995F1Y=; b=F5Jj3l/UCuwBtWQWxK5UvdSYzPKqgzttNjqqaoQNiWdHU+pVVcvDv4ISJGrPHccvuS STbqFx1lSx2bGSkS/0CFHE7VejCxU9fjB3RzR3rSUsTOZdxJS6DI8MSUozRlfKTkytpf 3oYf1dEwfztijPcAahaRpBTNZ4x7SR1bFYUNHLsY2jVqj+moQ7gpFOKFMfnqvwpFeszV xHn3gvFm5aVEAys64RuAHhxG6YKDsjJ6ZaJOxOYXv1Vg6ImbI9UXAkCLQtSqKR1feQGo uhnWR5h91mmATetNz9L9c6YXBFokO+oequGY8FqVHI8vSeBIIcjZAkWXPW3qAS2eOYSl iXgw== X-Received: by 10.68.98.36 with SMTP id ef4mr4868830pbb.27.1384488864828; Thu, 14 Nov 2013 20:14:24 -0800 (PST) Received: from debian-6.05 ([101.63.165.167]) by mx.google.com with ESMTPSA id gg10sm1263061pbc.46.2013.11.14.20.14.22 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 14 Nov 2013 20:14:24 -0800 (PST) From: Jambunathan K To: 10675-done@debbugs.gnu.org Subject: Re: bug#10675: 24.0.92; (image-size ...) on "large" images References: <81y5soxvvo.fsf@gmail.com> Date: Tue, 01 Jan 2002 06:17:24 +0530 In-Reply-To: <81y5soxvvo.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 31 Jan 2012 11:21:23 +0530") Message-ID: <87pu4uvqw3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: OP here. Closing it. [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kjambunathan[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.51 listed in list.dnswl.org] 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_PASS SPF: sender matches SPF record 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 10675-done Cc: emacs-orgmode@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: OP here. Closing it. [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.51 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kjambunathan[at]gmail.com) 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_PASS SPF: sender matches SPF record 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid OP here. Closing it. From unknown Thu Jun 19 16:21:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 13 Dec 2013 12:24:28 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator