GNU bug report logs - #10675
24.0.92; (image-size ...) on "large" images

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Tue, 31 Jan 2012 05:53:01 UTC

Severity: normal

Found in version 24.0.92

Done: Jambunathan K <kjambunathan <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10675 in the body.
You can then email your comments to 10675 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10675; Package emacs. (Tue, 31 Jan 2012 05:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jambunathan K <kjambunathan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 31 Jan 2012 05:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org, Orgmode <emacs-orgmode <at> gnu.org>
Subject: 24.0.92; (image-size ...) on "large" images
Date: Tue, 31 Jan 2012 11:21:23 +0530
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 <at> gnu.org/msg51014.html

My notes:
http://www.mail-archive.com/emacs-orgmode <at> gnu.org/msg51441.html

,---- http://www.mail-archive.com/emacs-orgmode <at> 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 <andreas.l...@med.uni-goettingen.de> 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
`----




Reply sent to Jambunathan K <kjambunathan <at> gmail.com>:
You have taken responsibility. (Fri, 15 Nov 2013 04:15:03 GMT) Full text and rfc822 format available.

Notification sent to Jambunathan K <kjambunathan <at> gmail.com>:
bug acknowledged by developer. (Fri, 15 Nov 2013 04:15:03 GMT) Full text and rfc822 format available.

Message #10 received at 10675-done <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: 10675-done <at> debbugs.gnu.org
Cc: emacs-orgmode <at> gnu.org
Subject: Re: bug#10675: 24.0.92; (image-size ...) on "large" images
Date: Tue, 01 Jan 2002 06:17:24 +0530
OP here.  Closing it.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 13 Dec 2013 12:24:28 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.