From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112036 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jano Kula Newsgroups: gmane.comp.tex.context Subject: Re: names of cached images Date: Fri, 2 Jul 2021 19:00:54 +0200 Message-ID: References: <0ffc6982-d46b-8341-c31f-a3a4af2ec893@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5476586439814214335==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32817"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 02 19:01:49 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzMY1-0008Mc-4k for gctc-ntg-context-518@m.gmane-mx.org; Fri, 02 Jul 2021 19:01:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 447A9285605; Fri, 2 Jul 2021 19:01:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XKaAT9s98RqI; Fri, 2 Jul 2021 19:01:12 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 610A628560A; Fri, 2 Jul 2021 19:01:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A0C31285606 for ; Fri, 2 Jul 2021 19:01:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vYuIEtC3IW4c for ; Fri, 2 Jul 2021 19:01:09 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.179; helo=mail-oi1-f179.google.com; envelope-from=jano.kula@gmail.com; receiver= Original-Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 19531285605 for ; Fri, 2 Jul 2021 19:01:09 +0200 (CEST) Original-Received: by mail-oi1-f179.google.com with SMTP id o6so12041889oic.9 for ; Fri, 02 Jul 2021 10:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=09MWHBV1NnDxNjn7X22NfXKJ6CLO7YftU6vT8ePwJwg=; b=qF0EhjtpgZX1wK1JQUKP9Ko599wZpwma59K5Zxk0hAYImmr8XZ/BV2e4wTUOvqv61H axnpn+JZdPs2eV61LfT70xfWaB00vypiMUJfIRr7+Yt0/xXx9p07s8mlNeN27q7LrL3L /DTu/8SSaBW47snds3cgZpjd3HHsgVeTZj+QOKsqYhRijX8rnI9fLUzJQ/Yw98KJLY68 J2Uz+mm46UxCfJZq61xZqKUp/uQLe3gorV6w5+QCFeiozPxKsZ72Ru14tq+fg3VdwACT hap2ETO72DEK535DCX+d6fmv7S7JJbSYbuvHYUj5lhPF5HflvrqQDKmJhFTwewDqjSsA Znvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=09MWHBV1NnDxNjn7X22NfXKJ6CLO7YftU6vT8ePwJwg=; b=ZQJnvl7588guSCMPP3bVOw6DMKy3hmGAtyigzMEXot/eEP1VLvJ0RYDAzv/6lRIjl3 Ht2Y4LPgv2bV8x3HPs1eKRCoqRpfupJCAH72lNm/U2eLyzfjuTxTxG6Vv6KENaqicdD4 VuBGxiwnOTgf3w8jtWWr0mA9Ib7yGSbniZWMfleb7/dL5MRIity8LEuskjEYmANEAvVc Y7wH4lT1qU7mAf1EHiArRb4uJyb2+axMVBGi8SWZvHazxRy45VLx21xj5QyyXJJroRk4 GakdMKxCeCjJLfo15V0smn3KtakTH1xH4horjYU9u1rVco+R3UwnUx98LMJs2vYNczPY LthA== X-Gm-Message-State: AOAM531b9lTDa3tibGF+70OIS8pLd3Ze9NlU4oqLODqNFIMQvNMKnOtW DzPrMotyT7eJQl1XVJKxH57JpmphgGprdWRhDnsU0SD2iKA= X-Google-Smtp-Source: ABdhPJwpl+pwu478p7ByzLfwf3yJGS60BHdo90MlEXCcV6BeKNaaXZ4IjmFoeZqdSLAOMx+2LBe/ZMkWh+eRurz+b9E= X-Received: by 2002:aca:4e13:: with SMTP id c19mr446676oib.178.1625245267290; Fri, 02 Jul 2021 10:01:07 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112036 Archived-At: --===============5476586439814214335== Content-Type: multipart/alternative; boundary="000000000000d46bd305c626e659" --000000000000d46bd305c626e659 Content-Type: text/plain; charset="UTF-8" Hi Aditya! On Fri, Jul 2, 2021, 17:43 Aditya Mahajan wrote: > > On Fri, 2 Jul 2021, Jano Kula wrote: > > > 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? > > Conversion is costly and that is why caching makes sense there. What is > the benefit of caching (i.e., simply copying the file to a different > directory) when there is no conversion? > Images are on the remote sever and I don't want to download them with every run. Images don't change, changed ones have different ID. Encapsualating jpgs into pdfs might be the right conversion, because pdf inclusion is fast, right? So I probably answered myself: write a conversion jpg -> pdf without any changes to the image. J. > Aditya > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --000000000000d46bd305c626e659 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Aditya!

On Fri, Jul 2, 2021, 17:43 Aditya Mahajan &l= t;adityam@umich.edu> wrote:

On Fri, 2 Jul 2021, Jano Kula wrote:

> Hello again,
>
> likely a bug and one question. Using this code with lmtx:
>
> \starttext
> \externalfigure[mill][width=3D40mm,cache=3D./first,conversion=3Dgray.p= df] %
> mill...
> \externalfigure[mill][width=3D40mm,cache=3D.,conversion=3Dgray.pdf]=C2= =A0 =C2=A0 =C2=A0 =C2=A0%
> m_k_i_v_mill...
> \externalfigure[mill][width=3D40mm,cache=3D./second]=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 % no
> visible caching
> \stoptext
>
> *First two figures*
> Chached image in the ./cache subdirectory has a lmtx name without pref= ix,
> the cached image in the current directory has mkiv syntax with=C2=A0 m= _k_i_v_
> prefix.
>
> *Third figure*
> The images are cached to a specified directory, only when some convers= ion
> is used. I'd like to cache images without any transformation. Is t= here any
> conversion which doesn't alter the figure, just caches it? Is new<= br> > conversion type needed? Or is there other way to force caching without=
> conversion?

Conversion is costly and that is why caching makes sense there. What is the= benefit of caching (i.e., simply copying the file to a different directory= ) when there is no conversion?

Images are on the remote sever and I don't want to download them = with every run. Images don't change, changed ones have different ID. En= capsualating jpgs into pdfs might be the right conversion, because pdf incl= usion is fast, right? So I probably answered myself: write a conversion jpg= -> pdf without any changes to the image.

J.<= /div>



Aditya
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg= -context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net
archive=C2=A0 : ht= tps://bitbucket.org/phg/context-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgar= den.net
___________________________________________________________________________= ________
--000000000000d46bd305c626e659-- --===============5476586439814214335== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5476586439814214335==--