Commit Graph

222 Commits

Author SHA1 Message Date
Harald Kuhr b19df1640b #626 Clean up + fill order support for all compression types
(cherry picked from commit 3e1f85c4dc)
2021-12-10 16:53:27 +01:00
Harald Kuhr e8e3e0f1d6 #628 TIFF metadata fix, now always outputs denominator for rationals.
+ Bonus: Added JAI TIFF interop module with test and other minor fixes.

(cherry picked from commit 11227a68a0)
2021-12-10 16:53:23 +01:00
Oliver Schmidtmer c249a21c8c #626: Handle fillOrder in TIFFImageReader, not in CCITTFaxDecoderStream (#627)
(cherry picked from commit 62ba73a30e)
2021-12-10 16:53:23 +01:00
Harald Kuhr 182b2fdfa9 Fixed NullPointerException due to missing PhotometricInterpretation, now uses fallback as we do when reading.
(cherry picked from commit 1f33afb5a1)
2021-12-10 16:53:22 +01:00
Harald Kuhr df068e350d #626 TIFF CCITT detection only once per IFD
(cherry picked from commit 9d3f271867)
2021-12-10 16:53:20 +01:00
Harald Kuhr d8f0cd97a2 Fix typo in TIFFImageMetadataFormat mk II.
(cherry picked from commit 778cdef69c)
2021-12-10 16:52:21 +01:00
Harald Kuhr f6971a9bce Fix typo in TIFFImageMetadataFormat.
(cherry picked from commit d46a76fca8)
2021-12-10 16:52:20 +01:00
Harald Kuhr 821965df0d #621 Don't add ICC profile for default gray images
(cherry picked from commit 105a1ee466)
2021-12-10 16:52:12 +01:00
Harald Kuhr ed46305d31 #619: Fix WebP Y'CbCr->RGB conversion (now uses rec 601)
(cherry picked from commit 976e5d6210)
2021-12-10 16:51:49 +01:00
Oliver Schmidtmer 382c51db7c Invert EOF check
(cherry picked from commit cd42d81817)
2021-12-10 16:50:59 +01:00
Oliver Schmidtmer 660f3f7e86 #579 Deeper EOL search in the CCITT stream
(cherry picked from commit ba5c667b6c)
2021-12-10 16:50:59 +01:00
Harald Kuhr 9adf0f4da3 #417: Half precision support (clean-up) 2021-04-10 14:17:38 +02:00
Harald Kuhr 3e4460ac41 Removed TODO (that has been done for some time). 2021-03-30 17:13:00 +02:00
Harald Kuhr 42196e8513 No longer unregister the old Apple provided spi. 2021-03-30 12:31:56 +02:00
Harald Kuhr bc07524e7a Simplified/optimized TIFF file recognition code. 2021-03-30 11:31:34 +02:00
Harald Kuhr 0011b9a480 #417: TIFF 16 bit FP 2021-03-29 10:26:47 +02:00
Harald Kuhr 9c8977062d #554, #416: Relaxed custom metadata restrictions. 2021-03-27 15:20:59 +01:00
Harald Kuhr b01b820ec8 Remove unintended debug output. 2021-03-27 15:19:15 +01:00
Harald Kuhr bb650e5280 Easier subsampling with xSub == 1 as no-op 2021-03-27 14:37:33 +01:00
Harald Kuhr ebaa69713f Deprecate for BufferedImageInputStream, now using buffered streams directly in all readers. 2021-01-11 22:07:31 +01:00
Harald Kuhr 253f04066b #579 More reliable CCITT compression type detection 2020-12-23 11:46:58 +01:00
Harald Kuhr 0da007ec8c Minor clean-up. 2020-12-11 18:32:02 +01:00
Harald Kuhr 021aba1a98 Better output when debugging readers. 2020-10-07 19:47:09 +02:00
Harald Kuhr 4d833a50e5 TIFF constants. 2020-07-10 22:41:47 +02:00
Harald Kuhr db5635e844 #535: Detect incorrect compression in TIFF CCITT stream. 2020-06-16 21:54:16 +02:00
Harald Kuhr 96cb3a07f4 #525: Fix for negative arrays size in old style JPEG in TIFF. 2020-04-15 13:28:56 +02:00
Harald Kuhr fb304d6c27 #520: Fix for incorrect serialization of single element arrays in metadata. 2020-01-29 20:58:34 +01:00
Koen De Groote aff31ebd1b Intellij suggested changes from static code analysis. 2020-01-28 16:18:07 +01:00
Harald Kuhr 768bc30653 Merge branch 'master' into adobe-path-write 2020-01-15 15:11:31 +01:00
Harald Kuhr d9d8419803 #514: Fix integer overflow in stripbytecounts computation. 2020-01-14 21:18:13 +01:00
Harald Kuhr e5c6832ec0 #490: Allow writing more TIFF fields. 2020-01-13 21:05:04 +01:00
Harald Kuhr f449a50d64 TIFF tile support. 2019-08-29 19:11:14 +02:00
Harald Kuhr 0c2433dc9f #289, #493: Finally implemented subsampling for < 8 bit samples 2019-08-29 19:11:14 +02:00
Harald Kuhr 9e23413456 Fixed JavaDoc errors to enable Java 8 build. 2019-08-10 00:41:36 +02:00
Harald Kuhr 7fad4d5cd8 #475: Fix support for writing TIFF > 2 GB 2019-02-12 20:40:08 +01:00
Harald Kuhr 3e4b14f984 #473: Fix for ColorMap (Indexed) TIFF with non-alpha ExtraSamples. 2019-02-12 20:34:31 +01:00
Harald Kuhr 5ade293445 Merge pull request #458 from Schmidor/455
Fix for #455: Ignore profiles PhotometricInterpretation MinIsWhite wi…
2019-02-12 20:29:31 +01:00
Oliver Schmidtmer cbaa0dc688 Fix for #455: Ignore profiles PhotometricInterpretation MinIsWhite with 1bit/pixel 2018-11-22 12:20:58 +01:00
Harald Kuhr 38ea0989d4 Merge pull request #446 from bernhardf-ro/master
Fix for corrupted output from non-RGB TIFF images with extra samples
2018-10-26 20:21:12 +02:00
Harald Kuhr 7e0de14783 Various Java 9 and beyond fixes:
- ExtraSamplesColorModel now overrides getComponentSize for correct size
 - TIFFImageReader/WriterSpi now recognizes the JEP 262 TIFF plugin
 - CCITTFaxEncoderStreamTest now directly creates writer (not JDK one)
2018-10-26 19:48:31 +02:00
Bernhard Fey 5a5c1f996b Modified new create[ImageTypeSpecifier] method according to suggestions by @haraldk
Renamed "create" method to "createImageTypeSpecifier".
Added exception thrown for unsupported planarConfiguration values.
2018-09-26 10:56:49 +02:00
Bernhard Fey f9b8cae0ea Fix for non-RGB images with extra sample
Added "create" method to TIFFImageReader that centralizes the use of "createBanded" and "createInterleaved" as well as the "extra samples" special case and fixes non-RGB images with non-alpha extra samples
2018-09-25 10:24:20 +02:00
Harald Kuhr 60180938d2 #439: Unclear exception message when passing image metadata as stream metadata 2018-08-30 14:46:55 +02:00
Harald Kuhr 24c6682236 #311 Updated license headers to be the same as in the LICENSE.txt 2018-08-18 19:22:52 +02:00
Harald Kuhr f71bcc5125 #432: Alternate fix + more tests + better alpha handling for TIFF 2018-08-18 13:27:38 +02:00
Harald Kuhr 8579b1c5bc Merge remote-tracking branch 'origin/master' 2018-08-18 12:51:30 +02:00
Harald Kuhr dd914444c9 Now preserves PHOTOMETRIC_WHITE_IS_ZERO for CCITT encodings. 2018-08-18 12:51:03 +02:00
Ivan Khaldeev c83171cdbf Fix getAlphaRaster for ExtraSamplesColorModel 2018-06-29 10:02:05 +04:00
Harald Kuhr 44530d4717 Minor fix for possible NPE 2018-06-13 17:35:30 +02:00
Harald Kuhr 156990afe0 Simplified write logic, by reusing sequence writing (single image sequence). 2018-06-13 16:53:43 +02:00