From: joakim@verona.se
To: emacs-devel@gnu.org
Subject: Re: Image rescaling
Date: Mon, 15 Sep 2014 17:12:31 +0200 [thread overview]
Message-ID: <m3vbooudcw.fsf@exodia.verona.se> (raw)
In-Reply-To: <m37g15ujop.fsf@exodia.verona.se> (joakim@verona.se's message of "Mon, 15 Sep 2014 14:55:50 +0200")
joakim@verona.se writes:
> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>
>> Most of the image format decoders (jpeg and gif, for instance) do not
>> support image rescaling. So shr uses ImageMagick for all its image
>> handling.
>>
>> There are two problems with this:
>>
>> 1) ImageMagick is crashy. Virtually all Emacs crashes I get happen deep
>> in the ImageMagic code. I mean, I don't get a lot of crashes, but they
>> happen from time to time, and are pretty annoying.
>>
>> 2) Some people run Emacs without ImageMagick built in, but usually have
>> the other libraries enabled.
>>
>> So I would propose to add a general image scaling function, and use that
>> in all the image handling functions. Without image rescaling, Emacs is
>> pretty useless for anything that involves handling images.
>>
>> Does this sound OK to everybody?
>>
>> And if so, is there an FSF-copyright-assigned quality image rescaling
>> function out there that I could adapt to Emacs so that I don't have to
>> write it myself? >"?
>
> Its a pity ImageMagic is crashy, but I take your word for it, since i
> dont experience it myself.
>
> Maybe something can be extracted from Gimp or Inkscape?
> Other than that, implementing a schoolbook image rescaling algorithm
> shouldnt be too much work.
OpenCV could perhaps be used as well. I have used it for mixing and
scaling of videostreams in the past, using affine transformations.
I have used GStreamer as well, but I dont know how good that is for
still image scaling.
Maybe the above libraries are too heavyweight, I'm just throwing the
ideas out there.
--
Joakim Verona
next prev parent reply other threads:[~2014-09-15 15:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-15 12:45 Image rescaling Lars Magne Ingebrigtsen
2014-09-15 12:55 ` joakim
2014-09-15 13:03 ` Lars Magne Ingebrigtsen
2014-09-15 14:27 ` Stefan Monnier
2014-09-15 15:13 ` David Kastrup
[not found] ` <COL131-W90F448E3DC24C8E66A0E4D84C90@phx.gbl>
[not found] ` <m3d2as98w1.fsf@stories.gnus.org>
2014-09-18 17:03 ` Mirek Kaim
2014-09-15 15:12 ` joakim [this message]
2014-09-15 16:14 ` Lars Magne Ingebrigtsen
2014-09-15 19:01 ` joakim
2014-09-15 19:59 ` Lars Magne Ingebrigtsen
2014-09-15 20:00 ` joakim
2014-09-16 0:07 ` Stefan Monnier
2014-09-16 9:42 ` Lars Magne Ingebrigtsen
2014-09-16 11:22 ` Dmitry Antipov
2014-09-16 11:37 ` Lars Magne Ingebrigtsen
2014-09-16 14:42 ` Eli Zaretskii
2014-09-16 14:52 ` Lars Magne Ingebrigtsen
2014-09-16 3:10 ` Stephen J. Turnbull
2014-09-16 14:33 ` Eli Zaretskii
2014-09-19 16:48 ` Ivan Kanis
2014-09-30 14:19 ` Lars Magne Ingebrigtsen
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=m3vbooudcw.fsf@exodia.verona.se \
--to=joakim@verona.se \
--cc=emacs-devel@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.
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).