Jim schrieb am 04.03.2024 um 15:30:
Recently I've been trying to make some PDFs smaller by using better
compression of JPEG pictures.
I was happy to see that \externalfigure cheerfully accepts .jp2 (JPEG 2000)
files. However, my understanding (and I could well be wrong, but I've seen
it multiple places) is that JPEG 2000 *Part 2* files should have extension
.jpx, not .jp2.
By default, ConTeXt does not recognize .jpx. But if I rename a .jpx file
to have a .jp2 extension, then ConTeXt properly processes the file and I
see the picture in the PDF.
Q: are there any plans to make ConTeXt recognize the .jpx extension?
If not, can anyone suggest some ConTeXt code which allows me to tell
ConTeXt to process a .jpx file as a .jp2 file?
Adding
\definegraphictypesynonym [jpx] [jp2]
at the begin of your document should do the trick.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
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
___________________________________________________________________________________