unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* djvu image file format in emacs?
@ 2009-07-20 15:24 joakim
  2009-07-20 18:30 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: joakim @ 2009-07-20 15:24 UTC (permalink / raw)
  To: Emacs Development

I would like to add the .djvu image file format to Emacs list of
supported native formats.  image-dired already almost supports it
through ImageMagick.

Does anyone have any opinions on this? I like djvu as an archive format
for scanned books, since its free, supported by free software, and
compresses well, as far as I can determine.

-- 
Joakim Verona




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: djvu image file format in emacs?
  2009-07-20 15:24 djvu image file format in emacs? joakim
@ 2009-07-20 18:30 ` Stefan Monnier
  2009-07-20 22:53   ` joakim
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2009-07-20 18:30 UTC (permalink / raw)
  To: joakim; +Cc: Emacs Development

> I would like to add the .djvu image file format to Emacs list of
> supported native formats.  image-dired already almost supports it
> through ImageMagick.
> Does anyone have any opinions on this?

Sounds good.  BTW, this will make it that much more desirable to merge
image-mode and doc-view.el.


        Stefan




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: djvu image file format in emacs?
  2009-07-20 18:30 ` Stefan Monnier
@ 2009-07-20 22:53   ` joakim
  2009-07-21  1:13     ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: joakim @ 2009-07-20 22:53 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs Development

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I would like to add the .djvu image file format to Emacs list of
>> supported native formats.  image-dired already almost supports it
>> through ImageMagick.
>> Does anyone have any opinions on this?
>
> Sounds good.  BTW, this will make it that much more desirable to merge
> image-mode and doc-view.el.

Please clarify.

>
>         Stefan
>
-- 
Joakim Verona




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: djvu image file format in emacs?
  2009-07-20 22:53   ` joakim
@ 2009-07-21  1:13     ` Stefan Monnier
  2009-07-23  9:39       ` joakim
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2009-07-21  1:13 UTC (permalink / raw)
  To: joakim; +Cc: Emacs Development

>>> I would like to add the .djvu image file format to Emacs list of
>>> supported native formats.  image-dired already almost supports it
>>> through ImageMagick.
>>> Does anyone have any opinions on this?
>> Sounds good.  BTW, this will make it that much more desirable to merge
>> image-mode and doc-view.el.
> Please clarify.

image-mode allows you to view a single file which contains one or more
images.
doc-view allows you to view a directory which contains (one or more)
images (tho it also additionally creates the directory first, from
a PDF/PS/DVI file).
If you look at the two modes and their code, you'll see there's already
some overlap, but there should be more.


        Stefan




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: djvu image file format in emacs?
  2009-07-21  1:13     ` Stefan Monnier
@ 2009-07-23  9:39       ` joakim
  2009-07-23 11:02         ` Tassilo Horn
  0 siblings, 1 reply; 8+ messages in thread
From: joakim @ 2009-07-23  9:39 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs Development

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>>> I would like to add the .djvu image file format to Emacs list of
>>>> supported native formats.  image-dired already almost supports it
>>>> through ImageMagick.
>>>> Does anyone have any opinions on this?
>>> Sounds good.  BTW, this will make it that much more desirable to merge
>>> image-mode and doc-view.el.
>> Please clarify.
>
> image-mode allows you to view a single file which contains one or more
> images.
> doc-view allows you to view a directory which contains (one or more)
> images (tho it also additionally creates the directory first, from
> a PDF/PS/DVI file).
> If you look at the two modes and their code, you'll see there's already
> some overlap, but there should be more.

Interesting.

Another question:
I would like to use the ImageMagick MagickWand api to support djvu,
because then I could, as it seems, be easy to do other image operations in Emacs
I'd like to do, scaling, croping, etc.

Any opinions on this? ImageMagick is free software, has GPL compatible
license, and seems nice. image-dired already relies on ImageMagick.

>
>
>         Stefan
-- 
Joakim Verona




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: djvu image file format in emacs?
  2009-07-23  9:39       ` joakim
@ 2009-07-23 11:02         ` Tassilo Horn
  2009-07-23 11:26           ` Miles Bader
  0 siblings, 1 reply; 8+ messages in thread
From: Tassilo Horn @ 2009-07-23 11:02 UTC (permalink / raw)
  To: joakim; +Cc: Stefan Monnier, Emacs Development

joakim@verona.se writes:

Hi Joakim,

> Another question:
> I would like to use the ImageMagick MagickWand api to support djvu,
> because then I could, as it seems, be easy to do other image
> operations in Emacs I'd like to do, scaling, croping, etc.
>
> Any opinions on this? ImageMagick is free software, has GPL compatible
> license, and seems nice. image-dired already relies on ImageMagick.

AFAIK, SXEmacs uses libWand only for all image stuff and dropped the
image format specific code.  Maybe that's a good approach, but of course
then you need to have ImageMagick then to get any image support...

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: djvu image file format in emacs?
  2009-07-23 11:02         ` Tassilo Horn
@ 2009-07-23 11:26           ` Miles Bader
  2009-07-23 11:51             ` joakim
  0 siblings, 1 reply; 8+ messages in thread
From: Miles Bader @ 2009-07-23 11:26 UTC (permalink / raw)
  To: joakim; +Cc: Stefan Monnier, Emacs Development

Tassilo Horn <tassilo@member.fsf.org> writes:
> AFAIK, SXEmacs uses libWand only for all image stuff and dropped the
> image format specific code.  Maybe that's a good approach, but of course
> then you need to have ImageMagick then to get any image support...

In theory, though all the multi-purpose image libraries I've looked at
have been pretty crappy, so my tendency is to be skeptical (dunno about
libmagicwand in particular, tho imagemagick generally seems to tend in
the "giant bloated mess" direction).

If there's something out there which really is smallish, very portable,
and very flexible, it might be a good thing to look into.

I'm not sure how much of Emacs image code could be gotten rid of though
-- much of the image code in emacs is actually for supporting
emacs-specific features, not the basic loading/saving.

-Miles

-- 
I'd rather be consing.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: djvu image file format in emacs?
  2009-07-23 11:26           ` Miles Bader
@ 2009-07-23 11:51             ` joakim
  0 siblings, 0 replies; 8+ messages in thread
From: joakim @ 2009-07-23 11:51 UTC (permalink / raw)
  To: Miles Bader; +Cc: Stefan Monnier, Emacs Development

Miles Bader <miles@gnu.org> writes:

> Tassilo Horn <tassilo@member.fsf.org> writes:
>> AFAIK, SXEmacs uses libWand only for all image stuff and dropped the
>> image format specific code.  Maybe that's a good approach, but of course
>> then you need to have ImageMagick then to get any image support...
>
> In theory, though all the multi-purpose image libraries I've looked at
> have been pretty crappy, so my tendency is to be skeptical (dunno about
> libmagicwand in particular, tho imagemagick generally seems to tend in
> the "giant bloated mess" direction).
>
> If there's something out there which really is smallish, very portable,
> and very flexible, it might be a good thing to look into.

I have never seen an image library like this.

> I'm not sure how much of Emacs image code could be gotten rid of though
> -- much of the image code in emacs is actually for supporting
> emacs-specific features, not the basic loading/saving.

I wont attempt to replace existing Emacs image code. I think it is good
to have basic image support withouth ImageMagick.

I will attempt to use ImageMagick to load djvu files in Emacs.  Since
ImageMagick can lots of other image formats, they will also be loadable
with Imagemagick. If ImageMagick is not linked, the existing image code
will execute as normal.

>
> -Miles
-- 
Joakim Verona




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-07-23 11:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-20 15:24 djvu image file format in emacs? joakim
2009-07-20 18:30 ` Stefan Monnier
2009-07-20 22:53   ` joakim
2009-07-21  1:13     ` Stefan Monnier
2009-07-23  9:39       ` joakim
2009-07-23 11:02         ` Tassilo Horn
2009-07-23 11:26           ` Miles Bader
2009-07-23 11:51             ` joakim

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