unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: Juri Linkov <juri@jurta.org>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: imagemmagick patch 5
Date: Wed, 03 Mar 2010 21:03:56 +0100	[thread overview]
Message-ID: <m3pr3l18b7.fsf@verona.se> (raw)
In-Reply-To: <87lje9xs4w.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 03 Mar 2010 21:34:35 +0200")

Juri Linkov <juri@jurta.org> writes:

>> The Imagemagick patch allows Emacs to use the Imagemagick libraries to
>> load images. This support can be used in parallell with the existing
>> image loading support. There is support for asking your imagemagick
>> installation which image types it supports, and registering them in
>> Emacs selectively.
>
> Great!
>
>> I use this patch a lot for viewing scanned djvu packages. I also have a
>> emacs scanner frontend called "emsane" I'm using together with this
>> patch.
>
> I wonder how do you plan to handle multi-page djvu?  Is it something
> that doc-view has to do when ImageMagick support will be incorporated
> into the core?

I've added some interfaces in the display spec for various imagemagick
operations like scaling and rotation of the image. I've also added an
index interface so a particular subimage inside a multipage djvu can be
viewed. This is the same interface already present for the gif support
in emacs, since gifs also can be image bundles. Imagemagick support a
number of image bundle formats such as pdf, djvu, tif, etc.

My experience is, though, that imagemagick handles image bundles
oddly. It seems to render the entire bundle in ram before rendering the
single indexed page. Most image bundle formats are not designed for that
to be necessary, so I'm not sure why imagemagick does that.

Until this area of imagemagick improves, I would say its doc-views
responsibility to handle image bundles, in the same way it already
does. If this problem is in someway solved, doc-view can take advantage
of the imagemagick library. I'm planning at having a go at this for
the case of directories with image files.

-- 
Joakim Verona




  reply	other threads:[~2010-03-03 20:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-03  7:39 imagemmagick patch 5 joakim
2010-03-03 19:34 ` Juri Linkov
2010-03-03 20:03   ` joakim [this message]
2010-03-06 17:59     ` Juri Linkov
2010-03-06 20:16       ` Stefan Monnier
2010-03-06 21:05         ` Juri Linkov
2010-03-07 14:37           ` Stefan Monnier
2010-03-07 19:08             ` Juri Linkov
2010-03-07 21:23               ` Stefan Monnier
2010-03-13 17:44                 ` Kim F. Storm
2010-03-30 16:12                 ` Image metadata (was: imagemmagick patch 5) Juri Linkov
2010-03-30 20:36                   ` Image metadata Stefan Monnier
2010-03-30 22:38                     ` Juri Linkov
2010-03-31  1:22                       ` Stefan Monnier
2010-04-02 21:51                       ` joakim
2010-04-02 22:38                         ` Juri Linkov
2010-03-04  2:41 ` imagemmagick patch 5 Stefan Monnier
2010-03-05 22:06   ` joakim
2010-03-05 22:30     ` Stefan Monnier
2010-03-05 23:56       ` Jan Djärv
2010-03-06  6:02       ` Stephen J. Turnbull
2010-04-15  9:34     ` joakim
2010-04-15 10:55       ` joakim
2010-04-16 20:45         ` Juri Linkov
2010-04-17  6:09           ` joakim

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=m3pr3l18b7.fsf@verona.se \
    --to=joakim@verona.se \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.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 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).