unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: create-image on console emacs
Date: Thu, 06 May 2010 16:05:08 -0600	[thread overview]
Message-ID: <hrveec$8u2$1@dough.gmane.org> (raw)
In-Reply-To: <p2ge01d8a51005061318u2847fc44z9fcd7f81fa2333c6@mail.gmail.com>

Lennart Borgman wrote:
> 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.

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

-- 
Kevin Rodgers
Denver, Colorado, USA





  reply	other threads:[~2010-05-06 22:05 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
2010-05-06 22:05   ` Kevin Rodgers [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hrveec$8u2$1@dough.gmane.org' \
    --to=kevin.d.rodgers@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).