Hello again,

likely a bug and one question. Using this code with lmtx:

\starttext
\externalfigure[mill][width=40mm,cache=./first,conversion=gray.pdf] % mill...  
\externalfigure[mill][width=40mm,cache=.,conversion=gray.pdf]       % m_k_i_v_mill...
\externalfigure[mill][width=40mm,cache=./second]                    % no visible caching
\stoptext


First two figures  
Chached image in the ./cache subdirectory has a lmtx name without prefix, the cached image in the current directory has mkiv syntax with  m_k_i_v_ prefix.

Third figure
The images are cached to a specified directory, only when some conversion is used. I'd like to cache images without any transformation. Is there any conversion which doesn't alter the figure, just caches it? Is new conversion type needed? Or is there other way to force caching without conversion?

Thank you,
Jano


On Wed, Jun 9, 2021 at 3:23 PM Jano Kula <jano.kula@gmail.com> wrote:
Hello Hans,

On Sun, Jun 6, 2021 at 4:56 PM Hans Hagen <j.hagen@xs4all.nl> wrote:
On 6/6/2021 1:16 PM, Jano Kula wrote:
> Hello list,
>
> usingconversion=gray.pdf in lmtx the cached images' names have some
> string in their name. I thought it's a name of random sequence of luatex
> cache, but the string is the same on other machines and I don't know,
> where it comes from. mkiv used to have m_k_i_v_ string there.
>
> hacker.pdf = source image
> hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached linux
> hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win
>
> MWE
> \starttext
> \externalfigure[hacker]
>      [cache=./,
>      conversion=gray.pdf]
> \stoptext
>
> Is it intended behavior?
sure, something like that is always intended; it's an md5 of a hash of
all relevant parameters so that when you change one (say the resolution)
we now that we need to update

Thank you, wiki updated.
J.