Commit Graph

95 Commits

Author SHA1 Message Date
Harald Kuhr bbaa3e1186 TMI-140: JPEG with corrupted ICC profile (new kind) can now be read. 2015-05-28 23:01:51 +02:00
Harald Kuhr 051a1dcb5b Preparing JPEGImageReader for extension. 2015-04-30 10:20:35 +02:00
Harald Kuhr 037e0d5473 Clean up. 2015-04-10 11:23:38 +02:00
Harald Kuhr e603ae260d TMI-64: Test case clean-up 2015-04-10 11:06:50 +02:00
Harald Kuhr d303918d87 Code clean-up. 2015-04-08 13:38:15 +02:00
Harald Kuhr 2c90bcc49c Added license to ProviderInfo classes + minor code clean up. 2015-04-07 11:23:14 +02:00
Harald Kuhr d2d7569a7f TMI-115: Now downsamples and replaces 16 bit DQTs with 8 bit variants. 2015-03-23 10:28:58 +01:00
Harald Kuhr de9960f388 TMI-121: Clean up. 2015-03-22 14:26:09 +01:00
Harald Kuhr 3ce0a8594f TMI-121: Clean up. 2015-03-22 14:25:29 +01:00
Harald Kuhr 449db69d27 TMI-121: Clean up. 2015-03-22 14:19:29 +01:00
Harald Kuhr c4630d9eee TMI-121: Fixed regression, introduced by filtering out Adobe/APP14 segments completely. Now makes sure the segments have the "expected" length 16, and anything after that is discarded. 2015-03-21 16:47:15 +01:00
Harald Kuhr 87777dfc2d New SPI info. 2015-03-20 15:54:41 +01:00
Harald Kuhr 26475eb004 TMI-40: Fixed subsampling offset bug (and removed the slow, stepwise reading + simplified the code, at the cost of higher memory consumption). 2015-03-19 23:38:14 +01:00
Harald Kuhr 406ae28da7 TMI-120: Fix IIOOBE when file has no image. Will throw exceptions when trying to read or get metadata. 2015-03-19 21:57:03 +01:00
Harald Kuhr 11f33741d4 TMI-119: Fixed endless loop, trying to read 0 bytes at EOF caused by bogus segment lengths... 2015-03-19 21:30:37 +01:00
Harald Kuhr 3ef93b6758 TMI-113: And fixed tests for JPEGSegmentInputStream to pass, as we now filter out App14/Adobe. 2015-03-16 12:12:06 +01:00
Harald Kuhr cd5b41be5b TMI-113: And the missing test resource. 2015-03-16 12:05:52 +01:00
Harald Kuhr e8f207ef54 TMI-113: Worked around a rather nasty bug in com.sun.imageio.plugins.jpeg.AdobeMarkerSegment by filtering out all APP14/Adobe marker segments from the stream (and re-inserting to metadata later). 2015-03-16 12:02:31 +01:00
Harald Kuhr 02a4277413 TMI-117: Fix for "componentId attribute out of range" issue. 2015-03-12 12:55:55 +01:00
Harald Kuhr 493edada59 TMI-112: Now ignoring (removing) empty DHT node in metadata. 2015-03-11 19:55:28 +01:00
Harald Kuhr 032b2d9601 TMI-107: Better fix, with test case on stream level. JPEGSegmentImageInputStream now recovers from EOFException while parsing segments. 2015-03-09 12:49:40 +01:00
Harald Kuhr 2b2dd2fb40 TMI-107: JPEGSegmentImageInputStream now recovers from EOFException while parsing segments. 2015-03-07 21:41:38 +01:00
Harald Kuhr 5fb091b992 TMI-107, TMI-109: And another test case covering both 107 and 109. 2015-03-07 13:21:26 +01:00
Harald Kuhr 1df74ae9e9 TMI-109: Added test cases. 2015-03-07 12:20:47 +01:00
Harald Kuhr 5a0c596040 TMI-109: Fixed more possible NPEs because of missing SOF. Now throws IIOException immediately, if SOF is not found. 2015-03-07 12:00:52 +01:00
Harald Kuhr 37d4c03548 TMI-104: Fixed metadata inconsistency, 1 channel SOF now always interpreted as color space Gray, regardless of Adobe App14 marker. 2015-03-03 14:44:24 +01:00
Harald Kuhr d6f90b0b52 TMI-105: Handle (ignore) empty JFIF segment without throwing EOFException. 2015-03-03 09:09:40 +01:00
Harald Kuhr 5b95f57066 TMI-101, 102 & 103: Now better handles broken data (throws IIOException) and better detects bogus Adobe markers. 2015-03-02 10:29:19 +01:00
Harald Kuhr 1f99040927 TMI-101, 102 & 103: Now better handles broken data (throws IIOException) and better detects bogus Adobe markers. 2015-03-02 10:24:21 +01:00
Harald Kuhr 34cd913216 TMI-99: JPEGImageReader does not ignore incorrect color RGB profile for CMYK data 2015-02-26 21:52:16 +01:00
Harald Kuhr 654f7e7a70 TMI-81: Support for 32 bit unsigned int color model.
Bonus: Cleaned up creation of ImageTypeSpecifiers and added tests.
2014-11-20 15:57:36 +01:00
Harald Kuhr 3be918e375 TMI-74: Make JPEG segment parsing more lenient (missing file). 2014-11-03 21:16:07 +01:00
Harald Kuhr add6e07cae TMI-74: Make JPEG segment parsing more lenient 2014-11-03 21:05:58 +01:00
Harald Kuhr 7430d0053a Merge pull request #45 from ankon/imageio-jpeg-test-null
Avoid NPE when the expected tree is indeed null
2014-03-20 17:57:37 +01:00
Andreas Kohn f4ba4e081e Remove unneeded @SuppressWarnings("unchecked") 2014-03-17 12:20:04 +01:00
Andreas Kohn 9bb7b62987 Avoid NPE when the expected tree is indeed null 2014-03-17 12:19:41 +01:00
Harald Kuhr c3c23d0523 TMI-43: Made tests a little more robust to void false positives. 2014-03-03 20:29:58 +01:00
Harald Kuhr e3bab84e82 TMI-39: Cleanup after merge. 2014-03-02 23:10:20 +01:00
Harald Kuhr d607450ae4 Merge pull request #39 from escenic/upstream
JPEGImageReader throws "IllegalStateException: sourceRegion.height <= subsamplingYOffset!"
2014-03-02 22:15:06 +01:00
Harald Kuhr 037a47ca2a TMI-38: Fixed a bug in the getSourceCS method, that incorrectly identified non-subsampled JFIF files, as RGB instead of YCbCr. 2014-03-02 22:08:26 +01:00
Rune Bremnes 822bea80b6 Fix reading jpeg images where last scanline is higher than the y
source subsampling offset.
2014-02-24 14:32:05 +01:00
Rune Bremnes e924fcefc0 Added failing testcase for JPEGImageReader. 2014-02-24 14:31:57 +01:00
Harald Kuhr a26f8e5851 TMI-32: Cleanup after merge. Removed filter + code style changes. 2014-02-06 23:15:40 +01:00
Harald Kuhr b49fd7b653 TMI-32: Cleanup after merge. Removed filter + code style changes. 2014-02-06 23:14:08 +01:00
Harald Kuhr 9fa1d97389 TMI-32: Cleanup after merge. Removed filter + code style changes. 2014-02-06 23:09:01 +01:00
Harald Kuhr 7c012323e5 Merge pull request #32 from rtimpe/master
Support registration of JPEG plugins when the classloader can't find sun plugins
2014-02-06 23:02:43 +01:00
Harald Kuhr db259bff10 TMI-34: Handling of problematic Corbis RGB ICC profiles. 2014-02-06 22:45:35 +01:00
Rob Timpe 1e42cf1499 Return immediately when the right sun jpeg plugin is found. 2014-01-28 13:32:46 -08:00
Robert Timpe bb4e77406a Support registration of JPEG plugins when the classloader can't find sun plugins.
In some situations, the classloader may not be able to find the sun jpeg plugins
even if they are registered.  In this case, we can still find the sun plugins by
iterating over all the registered plugins.
2014-01-24 20:29:34 +00:00
Harald Kuhr ce87171026 TMI-JPEG-22: Fixed issue with trash 0x00 padding in JPEG. 2013-12-16 18:08:39 +01:00