From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [ODT] image scaling overridden by long caption Date: Fri, 27 Jan 2012 20:10:52 +0530 Message-ID: <811uqljjij.fsf@gmail.com> References: <87aa5lwfxm.fsf@med.uni-goettingen.de> <81pqefv4r9.fsf@gmail.com> <87r4yt9x5u.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqmzB-0001ir-ES for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 09:41:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqmz9-0007CM-BG for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 09:41:05 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:59940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqmz9-0007CE-56 for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 09:41:03 -0500 Received: by pbaa12 with SMTP id a12so1825896pba.0 for ; Fri, 27 Jan 2012 06:41:02 -0800 (PST) In-Reply-To: <87r4yt9x5u.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Sat, 21 Jan 2012 11:18:05 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-orgmode@gnu.org Hello Andreas Andreas Leha writes: > But I experienced another issue with respect to images scaling in the odt > export: > > This subtree: > > ======== test.org ========================== > * Test image scaling in odt > #+caption: bar > #+label: fig:bar > #+name: bar > #+attr_odt: :width 8 > #+header: :file bar.png > #+header: :width 7200 :height 3600 :res 600 > #+begin_src R :exports results :results graphics > plot(1:10, 1:10) > #+end_src > #+caption: baz > #+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 > ====================================== > > exports to this: http://i.imgur.com/sUHQi.png on my system. I am on a Netbook and I am unable to create "big" images. This is the following error I get when export the above snippet. ,---- "*Org-Babel Error Output*" | Error in png(filename = "baz.png", height = 3600, res = 600, width = 7200) : | unable to start device | Calls: -> -> png -> .External | In addition: Warning messages: | 1: In png(filename = "baz.png", height = 3600, res = 600, width = 7200) : | Unable to allocate bitmap | 2: In png(filename = "baz.png", height = 3600, res = 600, width = 7200) : | opening device failed | Execution halted `---- If I reduce the dimensions of the above images, I see that the ODT output is along expected lines. I imagine that for some reasons, the ODT exporter has trouble figuring out the image dimensions of the second image. Btw, can you post the outputs of the following forms: #+begin_src emacs-lisp (list (* max-image-size (frame-pixel-width)) (* max-image-size (frame-pixel-height))) #+end_src #+begin_src emacs-lisp (message "%S" (ignore-errors (image-size (create-image "bar.png") 'pixels))) (message "%S" (ignore-errors (image-size (create-image "baz.png") 'pixels))) #+end_src If you can also post the output of the XML created in your machines, I would be able to infer what could be happening. You can access the XML with: open odt file in archive-mode: C-x b test.odt or C-x C-f test.odt open content.xml : ENTER on content.xml search for .png : C-s .png Post the snippets for both 001.png and 002.png --