help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: create-image on console emacs


From: Kevin Rodgers
Subject: Re: create-image on console emacs
Date: Thu, 06 May 2010 16:05:08 -0600
User-agent: Thunderbird 2.0.0.24 (Macintosh/20100228)

Lennart Borgman wrote:
On Thu, May 6, 2010 at 9:56 PM, Gary <address@hidden> wrote:
Can anyone explain to me why If I use emacs in the console and call
create-image I get a message like "Non-X frame used" (whether I use an
X11 binary or non-X)? I don't get this at all.

The reason I ask is that I am trying to use the code from
http://xahlee.org/emacs/emacs_html.html (*waves*) and as I said to Xah
Lee off-list, while it may well be necessary to (for example) get an
image's dimensions in order to display an image, the reverse is not
true. Other console tools are able to do it fine, for example
ImageMagick can tell me the dimensions from the command line:

$ identify work/web1/Bilder/aussen.jpg
work/web1/Bilder/aussen.jpg JPEG 874x583 874x583+0+0 DirectClass 8-bit
58.75kb

X doesn't need to get involved until such time things actually (try to)
get displayed.

I tested this starting from "emacs -nw":

  (setq x (create-image "c:/my-image.jpg"))
  (setq s (image-size x t))

create-image works, but image-size fails.with "Non-W32 frame used".

It looks like the reason is that internally images are in some way
bound to frames. I do not know the reason for this, but you can see it
in the code of `image-size'.

Maybe it is a bug. Please submit a bug report.

Just a guess: the size of the image depends on the resolution of the
display system.

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

[Prev in Thread] Current Thread [Next in Thread]