From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 46F3B21820 for ; Sat, 11 Jan 2025 15:56:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DB87C4851D4 for ; Sat, 11 Jan 2025 15:55:08 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:in-reply-to:content-disposition:mime-version :references:message-id:from:from:date:date:received:received :received:received:received:received:received:received; s=cgl; t=1736607308; x=1739199309; bh=0vlViPjEbnVcJ6ZNK9Q6uXbtub5XBsBb 5KeIk1+MJCY=; b=WOnvtfyp4Bh/1IkoiyHuorODABPkzySUcvmnsBFXSocAvD9v 6Fy2aXbxI8l5loI4s0tWDNoHTolhJEp0lWtnfiSZrgc6TTCVBSwco1LTYjD3+Zbz bItsYZCoyKSXhTR5svVvuiR4z3nbNNyBgWqygJo78N0GOmAFg/2g74cVO/I= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=jdvb.ca Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A9dmD71ICnI4 for ; Sat, 11 Jan 2025 15:55:08 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2E83C48522F for ; Sat, 11 Jan 2025 15:54:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E8FAF48519F for ; Sat, 11 Jan 2025 15:54:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HS3_oYMFVymV for ; Sat, 11 Jan 2025 15:54:34 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=67.215.8.19; helo=seout4.web-dns1.com; envelope-from=zlists+context@jdvb.ca; receiver= Received: from seout4.web-dns1.com (seout4.web-dns1.com [67.215.8.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 7A17748519B for ; Sat, 11 Jan 2025 15:54:34 +0100 (CET) Received: from mailpro1.whc.ca ([51.79.16.13]) by se2.web-dns1.com with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tWcsh-00Eqse-De for ntg-context@ntg.nl; Sat, 11 Jan 2025 09:54:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jdvb.ca; s=default; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lwOjpHegoYs6WE6vxNbcDHyad1j1YSc6lJo22Tdl1T0=; b=rRNuuh+f9pvnHioNKYtHLyDhMP Za4BFIc/mHOz+LVp0qZaTuJ0Q7BOfnkYmynPnA6VagxGsvovn730TY3aVUWWwSPue82yR405nlFV1 dij2GijyDVchazK2EztlMr0Wnbxultc0FYxH00kYyhHkI/rs4NC7HeqBEts7aPkCL2+2rw+ADPYWE t94VI3R4Abk0NWFpX9IjknYMKAHjUsaIN2Uy+//Yiyo87B09NcdYxwJFB7l0PhF6LFJUGnb85HGJs UxJJUwnwRIWmLzEfbtCFgzdl0RRtrueojkHWRgU801NcZ0bO3p+3OgBcg5d0ROsEGG9AmowNN8yxB 70OLioug==; Received: from [47.55.144.2] (port=38840 helo=x360) by mailpro1.whc.ca with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1tWcsY-00ERzV-2h for ntg-context@ntg.nl; Sat, 11 Jan 2025 09:54:29 -0500 Received: by x360 (Postfix, from userid 1000) id 569F31E0D3A; Sat, 11 Jan 2025 10:54:22 -0400 (AST) Date: Sat, 11 Jan 2025 10:54:22 -0400 From: Jim To: mailing list for ConTeXt users Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Microslop: Just say no X-Originating-IP: 51.79.16.13 X-SpamExperts-Domain: out.mailpro1.whc.ca X-SpamExperts-Username: 51.79.16.13 Authentication-Results: web-dns1.com; auth=pass smtp.auth=51.79.16.13@out.mailpro1.whc.ca X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.06) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT/u6ePQcGFH23xyvoQeyrGNPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5x+OkQ6e4TPVgvpcS1fNw4ZIpdOJ9Sgfu6rKL8kf6cp2RxB IeVxrc7RY13pmIW1HBHilbHtbFYVmmyNP/jzd7CCzPgfBgZM0FjuQW6Y55dUiQZmnW/XN+tohdLu D74c7RJUTbucSr0bOvyz0a9U6lYdg8CBO1Snvm6qXHQp7O9kdZPt1ptJqUeJtZx82lIVH48BGzKf EMfQP5IsMlZ0RJfOLDnQGgRgHjioU8fpt7xeC7AK0L/uTNt3WCw41GzGb1Zq+pu9ho29CVyp3Dt9 A9c5hLgYgFsBSgLe7UmHHVjYG9GnC3OL+6eaioOqJ1MVeBS8xyVOjEJvIAACfll1FjMqX1/meW3M G7kx6XXEd8YzfeZE7YJwhBWCb1PmFojBOyjXs2KsRjKrCowEavDwQuKo3bSrXfKp2XsEXUBafcEf xV8Coej5pI7/nMRAwrsF7/9g5p66If/IR1kfxLX5OBwkE6OHS8/FxA6Moo6tghBinBqZR3KVQgqF /fPYYAfEfsgwk5X5rCZeYz/3TkV2eDAGCFkowjXOBEPmC0yHFVrErzElSnqmTrfoNaY32v9qRx8Z U/9HqfWQZiE3AkP7WzFvTMm+RdW/uBJnu3u5UnmMUAjc02b5jkFQobPtfIMRZKkf45ZSyy4dc2Mg P6Eqbf2YMR3EqJ9Y5oosudd3N5Sg6kwI+6+Iq0u9FicigQTH/ub2qRts21g1PYx35fe3dzaVXPWl FdaGOH191uXjgjQN/WFpsZaZSrHKzi9a18qWWyBuSt2KGbzCxGga80a3XdQOkqPmIeW3IkXkaI0b vQblVXM6mCHEVkRugaawCPSl0iZvgRtea07paRiSLL2ShuV4mfeo0mGANbykyMXhXrMXF2RCocjQ L9Td+ZGFmhHYC7ptQrmVr+hFcAVxMUxHqhIhgeQKvt8SGOaF6j7hHdgTCw== X-Report-Abuse-To: spam@se1.web-dns1.com Message-ID-Hash: UC2NBJBHK44BORNZYCIVPHP6PPQ7W7PH X-Message-ID-Hash: UC2NBJBHK44BORNZYCIVPHP6PPQ7W7PH X-MailFrom: zlists+context@jdvb.ca X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: JPEG 2000 extensions List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Hans, On Sat, Jan 11, 2025 at 11:48 (+0100), Hans Hagen wrote: > On 1/11/2025 1:47 AM, Jim wrote: >> Hi, >> in .../tex/texmf-context/tex/context/base/mkiv/grph-inc.lua I see (at line >> 333) >> ["jp2"] = { list = { "jp2" } }, >> That is (AIUI) the proper extension for JPEG2000 (Part 1) images. >> The JPEG2000 (Part 2) images I looked at have the same magic bytes as >> listed in line 349 of that file. >> AIUI, JPEG2000 (Part 2) images should have the extension .jpx. Is it >> possible to change line 333 to read >> ["jp2"] = { list = { "jp2", "jpx" } }, >> ? >> (I hope this is the only change needed.) >> I may be the only (vocal) person using .JPX files right now, but in the >> years to come, who knows how many people will use it? >> Thanks. >> Jim >> P.S. I know that I can use >> \definegraphictypesynonym [jpx] [jp2] >> but in the interest of helping others who may run into this issue in >> the future, ... > did you check if pdf viewers can handle both? or is it just a suffix issue All the PDF viewers (and other tools) I tried can handle JPX files. These include - (ancient) Adobe acroread for Linux - evince - kpdf - firefox and chromium's PDF viewers - emacs' pdfview - xpdf - diffpdf - ghostview - mupdf - qpdfview - okular - zathura - xournal - xournalpp Admittedly, the list isn't exhaustive, but large enough that I think it makes sense to provide support for JPX. It is more than a suffix issue, as (for example) the "file" program knows the different between Part 1 and Part 2 versions of JPEG2000 files. Further, the tool I access to create Part 2 images from (ordinary) JPEGs creates considerably smaller images than the tools I have to create Part 1 images (with no apparent loss of quality). I do not know enough about the differences to comment on the likelihood that a viewer will handle Part 1 but not Part 2, but I can say I haven't seen such a thing yet. (In about a year and a half of using Part 2 images in a monthly newsletter I edit, I have only had one person complain once about not being able to see the images; this person is known to have ancient software on his computer, and he only mentioned it once, which makes me think he used a different program to look at the newsletter one month.) Cheers. Jim ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________