From: Lennart Borgman <lennart.borgman@gmail.com>
To: Help-gnu-emacs@gnu.org
Subject: Re: create-image on console emacs
Date: Thu, 6 May 2010 22:18:17 +0200 [thread overview]
Message-ID: <p2ge01d8a51005061318u2847fc44z9fcd7f81fa2333c6@mail.gmail.com> (raw)
In-Reply-To: <8339y4pzxc.fsf@garydjones.name>
On Thu, May 6, 2010 at 9:56 PM, Gary <help-gnu-emacs@garydjones.name> 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.
next prev parent reply other threads:[~2010-05-06 20:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 19:56 create-image on console emacs Gary
2010-05-06 20:18 ` Lennart Borgman [this message]
2010-05-06 22:05 ` Kevin Rodgers
2010-05-06 22:21 ` Lennart Borgman
[not found] ` <mailman.11.1273177123.30155.help-gnu-emacs@gnu.org>
2010-05-07 2:53 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=p2ge01d8a51005061318u2847fc44z9fcd7f81fa2333c6@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=Help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.