[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emms-help] Dynamic cover thumbnail caching

From: Pierre Neidhardt
Subject: Re: [emms-help] Dynamic cover thumbnail caching
Date: Thu, 26 Oct 2017 07:56:43 +0100
User-agent: mu4e 0.9.18; emacs 25.2.1

Yoni Rabkin <address@hidden> writes:

>>                                (setq err (call-process "convert" nil '(t t) 
>> nil
>>                                                        "-resize" (format 
>> "%sx%s" size-value size-value)
>>                                                        cover
>>                                                        cache-dest-file)))))
> If emacs has been compiled with imagemagick support, it should have some
> of these features built-in. I think that Emacs does its own image
> caching as well. Is is possible to leverage that instead of making an
> external call?

That was one of my main concerns for optimization.  If you look at my
code, you'll see that I'm using the ImageMagick library

        (image-size (create-image c) t)

The library does not seem to provide any feature for _resizing_ an

I hope you can prove me wrong.

"convert" should also be a `defvar`/`defcustom`, I'll change that.

Pierre Neidhardt

<ahzz_> i figured 17G oughta be enough.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]