[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emms-help] Dynamic cover thumbnail caching
From: |
Yoni Rabkin |
Subject: |
Re: [emms-help] Dynamic cover thumbnail caching |
Date: |
Thu, 26 Oct 2017 06:58:26 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Pierre Neidhardt <address@hidden> writes:
> 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
> image.
>
> I hope you can prove me wrong.
I assumed it did without checking; I assumed wrong.
Perhaps a patch to src/image.c and lisp/image.el is the future as well.
--
"Cut your own wood and it will warm you twice"