From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103354 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lutz Haseloff Newsgroups: gmane.comp.tex.context Subject: Re: degrade module Date: Fri, 15 Feb 2019 11:48:51 +0100 Message-ID: <5A20CD44-27E6-408A-8D89-DD4019F79B05@toppkieker.info> References: <87lg2ikt6e.fsf@a16n.net> <20190215082535.39294102@homerow> <20190215110845.3a741c38@homerow> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1783554106280582341==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="191682"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: K-9 Mail for Android To: Context Mailing List Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 15 11:49:05 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gub3F-000ndH-Cm for gctc-ntg-context-518@m.gmane.org; Fri, 15 Feb 2019 11:49:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1FA56EC89E; Fri, 15 Feb 2019 11:48:54 +0100 (CET) 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 zuFsSTuD6adt; Fri, 15 Feb 2019 11:48:53 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4DBC0EC895; Fri, 15 Feb 2019 11:48:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 399AAEC895 for ; Fri, 15 Feb 2019 11:48:52 +0100 (CET) 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 6MMbp7EUfnKs for ; Fri, 15 Feb 2019 11:48:51 +0100 (CET) Original-Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4C34FEC88D for ; Fri, 15 Feb 2019 11:48:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1550227731; s=strato-dkim-0002; d=toppkieker.info; h=Message-ID:From:To:Subject:References:In-Reply-To:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Etx0CTy8ta62zX+ChqRnQX9pGgHrTfmI7ukhXLYDSPM=; b=qaJCfToryH2OR5u5dvQryNsaa/fdEE/38PxvD1ffpGDl0KIWbgWMA2eCCKtXG5oHZc VC9EfzTO1CSzVjzvJL7NK3+U8avzG6mXXudAV6PzUGf3d594y5oAZyXlwoTdz/xOJEzY v2FeYgN8ZyVligIBwzELORNgWYpATIu1yRuTRJJIhfBb/pDUYmQi11dhOw4ibmnOlQSL abDx+qL5r2yr6y+zwIvwnz4+IQNiCqyB/aH1EIUv+O4TkBI4GTmI6V1ese9xv53rBw15 FHdr5x1kh0P89P29imXMliK4MZC/VDFcP1pM2ktbHIo0QBrDQELkfhxTTOKvFDC9mfoL trRw== X-RZG-AUTH: ":IHkQbw6geuzPHokbjwREyaVCwUnRg4l4M61DnCKQiup5oU3VJYnTARnVQHs13oVJE7yuJ9mCX6SPc1s0" X-RZG-CLASS-ID: mo00 Original-Received: from [10.211.217.194] by smtp.strato.de (RZmta 44.9 SBL|AUTH) with ESMTPSA id Z081b3v1FAmoLC5 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Fri, 15 Feb 2019 11:48:50 +0100 (CET) In-Reply-To: <20190215110845.3a741c38@homerow> 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.org gmane.comp.tex.context:103354 Archived-At: --===============1783554106280582341== Content-Type: multipart/alternative; boundary="----NG51BON6U2GAIM6JSXFOPSYC2NSR1W" Content-Transfer-Encoding: 7bit ------NG51BON6U2GAIM6JSXFOPSYC2NSR1W Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks Marco, Your Module with wrapper finally works for me as expected=2E Thank you very much=2E Will it find its way into the distribution as an enhanced degrade module? Greetings ant thanks again Lutz Am 15=2E Februar 2019 11:08:45 MEZ schrieb Marco Patzer : >On Fri, 15 Feb 2019 10:22:48 +0100 >Lutz Haseloff wrote: > >> but both scripts trow the same error on windows and linux-armhf: >>=20 >> grph-downsample=2Elua:32: bad argument #2 to 'format' (number has no >> integer representation) > >It works here on linux-armhf=2E No Lua error=2E Maybe the file got >mangled during transmission=2E > >I've uploaded a modified version to github, maybe try that one: > > https://github=2Ecom/mpfusion/context-downsample > >It includes a wrapper so you can call it like any other module >(\usemodule[downsample])=2E It's still Peter's code, but with small >modifications, so it degrades jpg as well as png images at the same >time=2E It's a quick hack, but works here, also on armhf=2E > >Marco ------NG51BON6U2GAIM6JSXFOPSYC2NSR1W Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks Marco,
Your Module with wrapper finally = works for me as expected=2E
Thank you very much=2E
Will it find its w= ay into the distribution as an enhanced degrade module?

Greetings a= nt thanks again

Lutz

Am 15=2E Febr= uar 2019 11:08:45 MEZ schrieb Marco Patzer <lists@homerow=2Einfo>:
On Fri, 15 Feb 2019 10:22:48 +0100
Lutz Haseloff = <lutz=2Ehaseloff@toppkieker=2Einfo> wrote:

but both scripts trow the same error on win= dows and linux-armhf:

grph-downsample=2Elua:32: bad argument #2 to '= format' (number has no
integer representation)

It wo= rks here on linux-armhf=2E No Lua error=2E Maybe the file got
mangled du= ring transmission=2E

I've uploaded a modified version to github, may= be try that one:

https://github=2Ecom/mpfusion/context-downsample

It = includes a wrapper so you can call it like any other module
(\usemodule[= downsample])=2E It's still Peter's code, but with small
modifications, s= o it degrades jpg as well as png images at the same
time=2E It's a quick= hack, but works here, also on armhf=2E

Marco
=
------NG51BON6U2GAIM6JSXFOPSYC2NSR1W-- --===============1783554106280582341== 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== --===============1783554106280582341==--