From: Hans Hagen <j.hagen@xs4all.nl>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: JPEG 2000 extensions
Date: Sat, 11 Jan 2025 11:48:07 +0100 [thread overview]
Message-ID: <d81238c5-1447-41e6-a508-73a4096b4963@xs4all.nl> (raw)
In-Reply-To: <Z4G/i2FqRW8RH6zp@x360.localdomain>
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
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2025-01-11 10:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-11 0:47 [NTG-context] JPEG 2000 extensions Jim
2025-01-11 10:48 ` Hans Hagen [this message]
2025-01-11 14:54 ` [NTG-context] " Jim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d81238c5-1447-41e6-a508-73a4096b4963@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).