Commit Graph

44 Commits

Author SHA1 Message Date
Harald Kuhr 5cc201b46d JPEG Exif rotation in metadata + support 2020-07-10 22:05:46 +02:00
Harald Kuhr ee049d9465 #488: Fix for AIOOBE in getEmbeddedICCProfile when ICC profile is empty 2019-08-07 16:18:01 +02:00
Harald Kuhr 2235f6c911 #202, #433: Fixes offset issues when reading multiple JPEGs from single stream + embedded case (ie. TIFF). 2018-08-18 13:08:17 +02:00
Harald Kuhr 7ab72f0161 #329 JPEGImageReader endless loop fix 2018-05-22 21:10:57 +02:00
Harald Kuhr 15e39bce3f #323 JPEGSegmentImageInputStream now rewrites duplicate SOF/SOS ids.
And emits warnings when it applies rewrites.
2018-03-06 23:19:47 +01:00
Harald Kuhr fb3c5f8440 Added test case for RGB JPEG
+ fixed an issue in getImageTypes to avoid incompatible conversion.
2018-01-05 12:49:54 +01:00
Harald Kuhr 97cd8a955f #326: Support for JFIF JPEG with non-spec 8 bit grayscale thumbnail. 2017-02-27 20:58:23 +01:00
Harald Kuhr 7a0660c4d7 #297 JPEGLossless no supports AC tables only image + multiple tables images 2016-12-12 22:10:02 +01:00
Harald Kuhr 18705be7f6 #294 Fixed regression, reading JPEGs containing strange APPn markers without identifier string 2016-11-20 20:11:22 +01:00
Harald Kuhr afd8b28617 #182: Added more test files or better coverage. 2016-09-28 13:01:07 +02:00
Harald Kuhr 673f3e5b53 #182 Massive refactorings to clean up metadata and segment handling 2016-09-09 13:59:03 +02:00
Harald Kuhr 13bea23550 #276 Fix DHT inconsistency 2016-08-09 11:47:25 +02:00
Harald Kuhr e957120480 TMI #169 NullPointerException when reading JPEG image 2015-08-25 12:12:10 +02:00
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 d2d7569a7f TMI-115: Now downsamples and replaces 16 bit DQTs with 8 bit variants. 2015-03-23 10:28:58 +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 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 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 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 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 3be918e375 TMI-74: Make JPEG segment parsing more lenient (missing file). 2014-11-03 21:16:07 +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 e924fcefc0 Added failing testcase for JPEGImageReader. 2014-02-24 14:31:57 +01:00
Harald Kuhr db259bff10 TMI-34: Handling of problematic Corbis RGB ICC profiles. 2014-02-06 22:45:35 +01:00
Harald Kuhr ae58b859e4 TMI-JPEG-4: Fixed issue related to X/Y density out of range. 2013-10-25 17:09:20 +02:00
Harald Kuhr 086357694a TMI-JPEG-10: Fixed an issue with JPEGs without JFIF segment being treated as RGB, even when YCbCr. 2013-09-19 09:25:59 +02:00
Harald Kuhr b966254322 TMI-JPEG: More lenient segment parsing, now allows 0xFF padding between segments + fixed an NPE in JPEGImageReader if the parsing fails. 2013-04-19 16:17:01 +02:00
Harald Kuhr 73a880a358 TMI-23: Better handling of SOS segment (variable length). Now treats the rest of the stream after SOS as single segment. Not really ideal, but gives better performance than scanning for EOI... 2012-06-21 16:08:03 +02:00
Harald Kuhr c2245a503d TMI-22: Changed IIOException to warning for images with single chunk ICC_PROFILE with bad index/count. 2012-06-21 16:03:59 +02:00
Harald Kuhr a4dfb7a009 TMI-21: Implemented getRawImageType and getImageTypes for CMYK/YCCK.
TMI-16: Refactorings, cleaner color space determination + tests for thumbnail readers.
2012-05-07 20:26:26 +02:00
Harald Kuhr 0bdb68ea6f TMI-19: Fix for broken JFIF raw RGB thumbnails 2012-04-16 22:55:32 +02:00
Harald Kuhr c16ffaca13 TMI-18: Fix for images/thumbnails get inverted colors. 2012-04-16 22:53:17 +02:00
Harald Kuhr c3524adbbc Made EXIFReader more lenient while parsing.
- Now supports empty strings encoded with value count 0.
 - Added Rational.NaN constant to handle bad EXIF data.
Fixed a bug in the JPEGImageReader's raw EXIF thumbnail decoding.
Added test cases.
2012-02-02 16:55:01 +01:00
Harald Kuhr f2e3f7ed03 Implemented all-new JPEGSegmentIIS that filters out bad JPEG segments before passing on to the native reader.
Implemented JFIF, JFXX and EXIF thumbnail reading.
Added loads of test cases for special cases found in the wild.
2012-02-01 16:01:34 +01:00
Harald Kuhr 7867aeae76 - Fixed issue with subsampling/source regions.
- Experimental support for custom ICC profiles with class output.
- Base work for extracting Exif thumbnail.
2011-12-20 15:33:38 +01:00
Harald Kuhr df0d3f90e8 Work in progress: Brand new JPEGImageReader capable of reading CMYK JPEG and images with "broken" color profiles. 2011-02-16 22:24:59 +01:00