From: Miles Bader <miles.bader@necel.com>
To: "Mathias Dahl" <mathias.dahl@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: image scaling
Date: Thu, 21 Feb 2008 18:10:53 +0900 [thread overview]
Message-ID: <buo7igyk736.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <7dbe73ed0802210042s5691ace5w9a69a3d0a847b7f0@mail.gmail.com> (Mathias Dahl's message of "Thu, 21 Feb 2008 09:42:23 +0100")
"Mathias Dahl" <mathias.dahl@gmail.com> writes:
>> 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).
>
> It would be really good to have such a feature as I think it would
> make browsing images in image-dired's thumbnail buffer (display some
> large images there and use SPC and DEL to go back and forth to see
> what I mean) much quicker. At least I guess it would be quicker to do
> this natively inside Emacs than using convert to scale the image as we
> do now.
In addition, I think it's a bit dodgy to rely on specific programs --
"convert", for instance is part of imagemagick, which is a
humongous/bloated package, so I don't have it installed on my home
system (even though it's a GNU/Linux system, where you might otherwise
expect to find it installed). I imagine it's simply not installed at
all on many non-GNU systems, or hard to find even when it is installed.
Scaling images isn't all that hard, even if you try to do a good job
(using a filter to avoid aliasing etc), so I think it would be fine to
do it in C code.
[We could optionally try to use library calls to do it when those
libraries will be linked into Emacs anyway, e.g., gtk-related libs.]
-Miles
--
The key to happiness
is having dreams. [from a fortune cookie]
next prev parent reply other threads:[~2008-02-21 9:10 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 [this message]
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
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=buo7igyk736.fsf@dhapc248.dev.necel.com \
--to=miles.bader@necel.com \
--cc=emacs-devel@gnu.org \
--cc=mathias.dahl@gmail.com \
--cc=miles@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).