-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes JBIG2 and JPEG 2000 support, by:
1) using maven-shade instead of maven-assembly so that META-INF/services files are merged (previously, because all the imageio libs have to use the same file name, only one was being included) 2) because the jai-imageio JPEG2000 package didn't declare support for JPX, a proxy Spi class had to be added to declare it 3) TesseractOCRParser doesn't declare support for JPEG2000 images either, even though Tesseract with Leptonica compiled with jp2 support will handle these, so an additional parser was added to handle these files Issues filed: jai-imageio/jai-imageio-jpeg2000#8 https://issues.apache.org/jira/browse/TIKA-2174
- Loading branch information
Showing
11 changed files
with
416 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
org.icij.imageio.jpx.JPXImageWriterSpi | ||
# | ||
# $RCSfile: javax.imageio.spi.ImageWriterSpi,v $ | ||
# | ||
# | ||
# Copyright (c) 2005 Sun Microsystems, Inc. All Rights Reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# | ||
# - Redistribution of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# | ||
# - Redistribution in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in | ||
# the documentation and/or other materials provided with the | ||
# distribution. | ||
# | ||
# Neither the name of Sun Microsystems, Inc. or the names of | ||
# contributors may be used to endorse or promote products derived | ||
# from this software without specific prior written permission. | ||
# | ||
# This software is provided "AS IS," without a warranty of any | ||
# kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND | ||
# WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY | ||
# EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL | ||
# NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF | ||
# USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS | ||
# DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR | ||
# ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, | ||
# CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND | ||
# REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR | ||
# INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGES. | ||
# | ||
# You acknowledge that this software is not designed or intended for | ||
# use in the design, construction, operation or maintenance of any | ||
# nuclear facility. | ||
# | ||
# $Revision: 1.2 $ | ||
# $Date: 2007/09/05 00:21:08 $ | ||
# $State: Exp $ | ||
# | ||
# --- JAI-Image I/O ImageWriter plug-ins --- | ||
# | ||
#com.github.jaiimageio.impl.plugins.jpeg.CLibJPEGImageWriterSpi | ||
#com.github.jaiimageio.impl.plugins.png.CLibPNGImageWriterSpi | ||
#com.github.jaiimageio.impl.plugins.jpeg2000.J2KImageWriterSpi | ||
#com.github.jaiimageio.impl.plugins.jpeg2000.J2KImageWriterCodecLibSpi | ||
com.github.jaiimageio.impl.plugins.wbmp.WBMPImageWriterSpi | ||
com.github.jaiimageio.impl.plugins.bmp.BMPImageWriterSpi | ||
com.github.jaiimageio.impl.plugins.gif.GIFImageWriterSpi | ||
com.github.jaiimageio.impl.plugins.pcx.PCXImageWriterSpi | ||
com.github.jaiimageio.impl.plugins.pnm.PNMImageWriterSpi | ||
com.github.jaiimageio.impl.plugins.raw.RawImageWriterSpi | ||
com.github.jaiimageio.impl.plugins.tiff.TIFFImageWriterSpi | ||
# | ||
# $RCSfile: javax.imageio.spi.ImageWriterSpi,v $ | ||
# | ||
# | ||
# Copyright (c) 2005 Sun Microsystems, Inc. All Rights Reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# | ||
# - Redistribution of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# | ||
# - Redistribution in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in | ||
# the documentation and/or other materials provided with the | ||
# distribution. | ||
# | ||
# Neither the name of Sun Microsystems, Inc. or the names of | ||
# contributors may be used to endorse or promote products derived | ||
# from this software without specific prior written permission. | ||
# | ||
# This software is provided "AS IS," without a warranty of any | ||
# kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND | ||
# WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY | ||
# EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL | ||
# NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF | ||
# USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS | ||
# DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR | ||
# ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, | ||
# CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND | ||
# REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR | ||
# INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGES. | ||
# | ||
# You acknowledge that this software is not designed or intended for | ||
# use in the design, construction, operation or maintenance of any | ||
# nuclear facility. | ||
# | ||
# $Revision: 1.2 $ | ||
# $Date: 2007/09/05 00:21:08 $ | ||
# $State: Exp $ | ||
# | ||
# --- JAI-Image I/O ImageWriter plug-ins --- | ||
# | ||
com.github.jaiimageio.jpeg2000.impl.J2KImageWriterSpi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.