unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: image scaling
Date: Thu, 21 Feb 2008 22:49:23 +0100	[thread overview]
Message-ID: <8563wiaskc.fsf@lola.goethe.zz> (raw)
In-Reply-To: <87odaam9oy.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 21 Feb 2008 13:43:57 -0500")

Chong Yidong <cyd@stupidchicken.com> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>> Looking at the Elisp manual's "38.16.2 Image Descriptors", it seems that
>> we do not support image scaling.
>>
>> I'd like to add such a feature to image-mode.el, but am wondering how we
>> should go about doing it.  Would there be some advantage to provide it
>> at the C level (e.g. if some of the image libs we use already provide
>> the necessary functionality) or should we just bite the bullet and call
>> some external tool like "convert -scale ..." (with the disadvantage that
>> flushing the image cache will not automatically cause the image to be
>> re-scaled).
>
> I think the cleanest (but not necessarily easiest) approach is to add
> a C level function to rescale an image.  This C function would act on
> the internal pixmap structures and implement its own image scaling
> algorithm.  The trouble with using external library functions is that
> not all of them support rescaling.

Since lot more people concerned about graphics work on those library
functions than on Emacs' graphics, we should be factoring Emacs' image
code in a manner that will allow us to make use of that functionality if
it is given (and possibly be able to use gdk if it is available).
Really: how pixels are passed one by one through Emacs before reaching
the display is a mess.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




  reply	other threads:[~2008-02-21 21:49 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21  4:21 image scaling Stefan Monnier
2008-02-21  8:42 ` Mathias Dahl
2008-02-21  9:10   ` Miles Bader
2008-02-21 15:59   ` Stefan Monnier
2008-02-21 20:41     ` Mathias Dahl
2008-02-21 10:01 ` David Kastrup
2008-02-21 10:06 ` joakim
2008-02-21 12:43   ` David O'Toole
2008-02-21 18:43 ` Chong Yidong
2008-02-21 21:49   ` David Kastrup [this message]
2008-02-21 22:20     ` Miles Bader
2008-02-22  6:35       ` Jan Djärv
2008-02-22  6:49         ` Miles Bader
2008-02-22  7:26           ` Jan Djärv
2008-02-22 22:57         ` Richard Stallman
2008-02-22  4:57     ` Chong Yidong
2008-02-22  7:48       ` David Kastrup
2008-02-22 20:28         ` Chong Yidong
2008-02-22 21:52           ` David Kastrup
2008-02-22 22:41             ` Chong Yidong
2008-02-22 22:51               ` David Kastrup
2008-02-22 10:23       ` Juanma Barranquero
2008-02-22 10:55         ` Thien-Thi Nguyen
2008-02-22 11:06           ` Juanma Barranquero
2008-02-22 20:38             ` Chong Yidong
2008-02-22 20:47               ` Juanma Barranquero
2008-02-22 22:21               ` Miles Bader
2008-02-23 19:28               ` Richard Stallman
2008-02-22 22:57       ` Richard Stallman
2008-02-21 22:28 ` Richard Stallman

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=8563wiaskc.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).