* Image formats support
@ 2017-03-18 13:38 Fabrice Popineau
2017-03-18 14:27 ` Andreas Politz
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Fabrice Popineau @ 2017-03-18 13:38 UTC (permalink / raw)
To: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
Maybe a stupid question but if emacs is compiled with ImageMagick support,
what is the point in asking JPEG, PNG, etc support at the same time from
independent libraries ?
Shouldn't configure made those options to be exclusive ?
Also what is (are) the drawback(s) of ImageMagick support vs the other
libraries ?
Fabrice
[-- Attachment #2: Type: text/html, Size: 418 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Image formats support
2017-03-18 13:38 Image formats support Fabrice Popineau
@ 2017-03-18 14:27 ` Andreas Politz
2017-03-18 15:00 ` Fabrice Popineau
2017-03-18 14:34 ` joakim
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Andreas Politz @ 2017-03-18 14:27 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: Emacs developers
Fabrice Popineau <fabrice.popineau@gmail.com> writes:
> Maybe a stupid question but if emacs is compiled with ImageMagick support,
> what is the point in asking JPEG, PNG, etc support at the same time from independent libraries ?
> Shouldn't configure made those options to be exclusive ?
Imagemagick is handled like an image type, so png and imagemagick are
two different types. One uses libpng as backend and the other
libmagick.
> Also what is (are) the drawback(s) of ImageMagick support vs the other libraries ?
In my experience, libpng is faster then imagemagick.
-ap
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Image formats support
2017-03-18 14:27 ` Andreas Politz
@ 2017-03-18 15:00 ` Fabrice Popineau
2017-03-18 15:44 ` Andreas Politz
0 siblings, 1 reply; 10+ messages in thread
From: Fabrice Popineau @ 2017-03-18 15:00 UTC (permalink / raw)
To: Andreas Politz; +Cc: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]
2017-03-18 15:27 GMT+01:00 Andreas Politz <politza@hochschule-trier.de>:
> Fabrice Popineau <fabrice.popineau@gmail.com> writes:
>
> > Maybe a stupid question but if emacs is compiled with ImageMagick
> support,
> > what is the point in asking JPEG, PNG, etc support at the same time from
> independent libraries ?
> > Shouldn't configure made those options to be exclusive ?
>
> Imagemagick is handled like an image type, so png and imagemagick are
> two different types. One uses libpng as backend and the other
> libmagick.
My point is that only one of imagemagick and libpng will handle png files
at a time.
When ImageMagick is available, it supersedes png, jpeg and anything it
handles (AFAICS).
If you want to let libpng handle png files, you need to change some
defaults
(imagemagick-filter-types, etc.)
> > Also what is (are) the drawback(s) of ImageMagick support vs the other
> libraries ?
>
> In my experience, libpng is faster then imagemagick.
Ok, that is understandable.
Fabrice
[-- Attachment #2: Type: text/html, Size: 1720 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Image formats support
2017-03-18 15:00 ` Fabrice Popineau
@ 2017-03-18 15:44 ` Andreas Politz
2017-03-18 15:49 ` Fabrice Popineau
0 siblings, 1 reply; 10+ messages in thread
From: Andreas Politz @ 2017-03-18 15:44 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: Emacs developers
Fabrice Popineau <fabrice.popineau@gmail.com> writes:
> My point is that only one of imagemagick and libpng will handle png
> files at a time. When ImageMagick is available, it supersedes png,
> jpeg and anything it handles (AFAICS).
No, the used library depends on the image-type, i.e.
(create-image "foo.png" 'imagemagick)
vs.
(create-image "foo.png" 'png)
-ap
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Image formats support
2017-03-18 15:44 ` Andreas Politz
@ 2017-03-18 15:49 ` Fabrice Popineau
2017-03-18 16:24 ` Andreas Politz
0 siblings, 1 reply; 10+ messages in thread
From: Fabrice Popineau @ 2017-03-18 15:49 UTC (permalink / raw)
To: Andreas Politz; +Cc: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 705 bytes --]
2017-03-18 16:44 GMT+01:00 Andreas Politz <politza@hochschule-trier.de>:
> Fabrice Popineau <fabrice.popineau@gmail.com> writes:
>
> > My point is that only one of imagemagick and libpng will handle png
> > files at a time. When ImageMagick is available, it supersedes png,
> > jpeg and anything it handles (AFAICS).
>
> No, the used library depends on the image-type, i.e.
>
> (create-image "foo.png" 'imagemagick)
>
> vs.
>
> (create-image "foo.png" 'png)
>
>
That is when you program, but when you merely use emacs to browse files
with dired, or when some package generates and load images (preview-latex),
defaults are used. And the default is that imagemagick supersedes png and
jpeg.
Fabrice
[-- Attachment #2: Type: text/html, Size: 1295 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Image formats support
2017-03-18 13:38 Image formats support Fabrice Popineau
2017-03-18 14:27 ` Andreas Politz
@ 2017-03-18 14:34 ` joakim
2017-03-18 14:49 ` Clément Pit-Claudel
2017-03-18 21:57 ` Andreas Politz
3 siblings, 0 replies; 10+ messages in thread
From: joakim @ 2017-03-18 14:34 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: Emacs developers
Fabrice Popineau <fabrice.popineau@gmail.com> writes:
> Maybe a stupid question but if emacs is compiled with ImageMagick support,
> what is the point in asking JPEG, PNG, etc support at the same time from independent libraries ?
> Shouldn't configure made those options to be exclusive ?
>
> Also what is (are) the drawback(s) of ImageMagick support vs the other libraries ?
As I remember it I was a bit unsure if Imagemagick was as good as the
other libraries. So I wanted to support both sets of libraries, to keep
the options open. But that was a number of years ago, so things have
surely changed.
>
> Fabrice
>
--
Joakim Verona
joakim@verona.se
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Image formats support
2017-03-18 13:38 Image formats support Fabrice Popineau
2017-03-18 14:27 ` Andreas Politz
2017-03-18 14:34 ` joakim
@ 2017-03-18 14:49 ` Clément Pit-Claudel
2017-03-18 21:57 ` Andreas Politz
3 siblings, 0 replies; 10+ messages in thread
From: Clément Pit-Claudel @ 2017-03-18 14:49 UTC (permalink / raw)
To: emacs-devel
On 2017-03-18 09:38, Fabrice Popineau wrote:
> Maybe a stupid question but if emacs is compiled with ImageMagick support,
> what is the point in asking JPEG, PNG, etc support at the same time from independent libraries ?
> Shouldn't configure made those options to be exclusive ?
>
> Also what is (are) the drawback(s) of ImageMagick support vs the other libraries ?
There's also the security aspect. The individual JPEG and PNG libraries have a better track record than ImageMagick.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Image formats support
2017-03-18 13:38 Image formats support Fabrice Popineau
` (2 preceding siblings ...)
2017-03-18 14:49 ` Clément Pit-Claudel
@ 2017-03-18 21:57 ` Andreas Politz
2017-03-18 23:08 ` Fabrice Popineau
3 siblings, 1 reply; 10+ messages in thread
From: Andreas Politz @ 2017-03-18 21:57 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: Emacs developers
Is there a down-side to this, apart from the exe becoming a little bigger
?
a-p
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Image formats support
2017-03-18 21:57 ` Andreas Politz
@ 2017-03-18 23:08 ` Fabrice Popineau
0 siblings, 0 replies; 10+ messages in thread
From: Fabrice Popineau @ 2017-03-18 23:08 UTC (permalink / raw)
To: Andreas Politz; +Cc: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 966 bytes --]
2017-03-18 22:57 GMT+01:00 Andreas Politz <politza@hochschule-trier.de>:
>
> Is there a down-side to this, apart from the exe becoming a little bigger
> ?
I run Windows so the exe is not bigger because the dlls are dynamically
loaded.
My problem is rather about emacs configuration. Various packages are able
to generate
preview images on the fly. How a normal user will know that ImageMagick or
libpng
will render those images ? How to switch from one to the other if needed ?
Or should ImageMagick supersede everything else when it is available ?
Also some packages call mogrify to resize images. If emacs is compiled with
ImageMagick support, surely the cost of calling an external program can be
spared.
I had the feeling that when ImageMagick support is compiled in, the other
graphic format
libraries could be removed. But that may not be that simple.
I hoped that someone had a good overview of the various options and comment
on that
feeling.
Fabrice
[-- Attachment #2: Type: text/html, Size: 1450 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2017-03-18 23:08 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-18 13:38 Image formats support Fabrice Popineau
2017-03-18 14:27 ` Andreas Politz
2017-03-18 15:00 ` Fabrice Popineau
2017-03-18 15:44 ` Andreas Politz
2017-03-18 15:49 ` Fabrice Popineau
2017-03-18 16:24 ` Andreas Politz
2017-03-18 14:34 ` joakim
2017-03-18 14:49 ` Clément Pit-Claudel
2017-03-18 21:57 ` Andreas Politz
2017-03-18 23:08 ` Fabrice Popineau
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).