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 -----------------------------------------------------------------