Commit Graph

127 Commits

Author SHA1 Message Date
Harald Kuhr
cd79ef4409 #1240: Fixes TIFFWriter overwrite of nested values issue 2026-01-15 19:42:56 +01:00
Vyshak Puthusseri
543acce8a3 Upgrade to Junit5 (#1050)
* chore: Update to junit5 for servlet package

* chore: Update to junit5 for contrib package

* chore: Update to junit5 for common-image package

* chore: Update to junit5 for common-lang package

* chore: Update to junit5 for entire project files

* fix: test case for JPEGImageReaderTest failed for java 8 and 11

assertEquals was using old signature of junit4.

* Update common/common-io/src/test/java/com/twelvemonkeys/io/InputStreamAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update common/common-io/src/test/java/com/twelvemonkeys/io/InputStreamAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-bmp/src/test/java/com/twelvemonkeys/imageio/plugins/bmp/BMPImageReaderTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-jpeg/src/test/java/com/twelvemonkeys/imageio/plugins/jpeg/JPEGImageReaderTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-tiff/src/test/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageMetadataTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-tiff/src/test/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageReaderTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-tiff/src/test/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageWriterTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/stream/BufferedChannelImageInputStreamTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/stream/BufferedChannelImageInputStreamTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* refactor: few indentation changes and missed test case

- review change related to missing test annotation
- unwanted new lines inside test case
- duplicate assertions

* refactor: moved the lambda expression to method reference

* review: testNotNullWithParameterNull catch block was never executed.

Added the suggested change

* Apply suggestions from code review

chore: adjust suggested indentation

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/util/ImageReaderAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/util/ImageReaderAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/util/ImageWriterAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* refactor: using assertTimeout doesnot kill the execution, even if the timeout happens.

It is better to use assertTimeoutPreemptively in cases, where we really want to kill the execution after timeout.
https://stackoverflow.com/questions/57116801/how-to-fail-a-test-after-a-timeout-is-exceeded-in-junit-5/57116959#57116959

---------

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>
2024-11-12 10:13:15 +01:00
Harald Kuhr
b91d02a562 #878: Now detects APP14/Adobe markers with full 2 byte version 2023-12-16 17:57:49 +01:00
Harald Kuhr
0378f504e7 #865 TIFF: Half decoding fix, now uses standard conversion. 2023-11-15 10:50:06 +01:00
Harald Kuhr
783c28ae0e More lenient test, using dynamic local port. 2023-05-25 12:16:38 +02:00
Harald Kuhr
44eebff62f #678, #679: TIFF read support for YCbCr Planar with or without subsampling 2022-05-12 23:01:12 +02:00
Harald Kuhr
aab5b062bd Fixed test typo. 2022-05-04 18:22:14 +02:00
Harald Kuhr
eced5b8efd #656 Code clean-up + minor refactorings. 2022-01-12 19:11:52 +01:00
Oliver Schmidtmer
74611e4e52 Support writing ASCII array in TIFF metadata (#656)
* Support writing ASCII array in TIFF metadata

* corrected formatting and extracted string writing to method
2022-01-12 18:56:22 +01:00
Harald Kuhr
33419ef291 #652: Avoid OOME for large values outside TIFF, even if length is unknown 2022-01-03 12:51:52 +01:00
Harald Kuhr
38caeb22e0 #631 Introduced ColorProfiles. Profile activation through SPI to force early activation. 2021-12-11 18:58:25 +01:00
Harald Kuhr
b2c5915db8 #631 New way of forcing profile activation + guarding all invocations of ICC_Profile.getInstance() 2021-12-11 18:13:07 +01:00
Harald Kuhr
da4efe98bf Avoid fetching external resources in XMPReader. 2021-12-10 13:41:05 +01:00
Harald Kuhr
6daca00fcd Minor clean-up. 2021-08-09 21:24:32 +02:00
Harald Kuhr
ef05872934 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	imageio/imageio-metadata/src/main/java/com/twelvemonkeys/imageio/metadata/tiff/TIFFWriter.java
2021-08-09 21:22:46 +02:00
Harald Kuhr
1ddab866fd #617 BigTIFF write support. 2021-08-09 21:11:40 +02:00
Harald Kuhr
ce997a6951 Some more minor clean-up. 2021-08-06 10:10:34 +02:00
Harald Kuhr
23bf5cb7b2 Minor clean-up. 2021-08-06 09:59:07 +02:00
Koen De Groote
196081a317 Documentation cleanup (#612)
* Added the `@Deprecated` tag to instances where is was mentioned in documentation, but not for the actual code itself.

Changed one documentation link pointing at a non-existing item.

* As per PR suggestion.
2021-06-29 13:06:07 +02:00
Harald Kuhr
15a9ad0a9b #483 Initial PSD Write support 2021-05-06 00:01:54 +02:00
Harald Kuhr
51bdd370da Fix some JavaDoc issues that broke the release build... 2021-04-24 12:05:49 +02:00
Harald Kuhr
b4ef5823f3 #417: Half precision support (clean-up) 2021-04-10 18:13:04 +02:00
Harald Kuhr
9adf0f4da3 #417: Half precision support (clean-up) 2021-04-10 14:17:38 +02:00
Harald Kuhr
970f4f3a7e #588 Clipping path from JPEG with multiple APP13 segments 2021-02-26 17:13:16 +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
74902b3fb4 StandardCharsets.US_ASCII instead of Charset.forName("ascii") 2020-12-21 17:30:34 +01:00
Harald Kuhr
1d4f681b8f #574 Better test data. 2020-11-19 20:59:12 +01:00
Harald Kuhr
eda2cd76db #574 Fix for possible OOME in Exif metadata. 2020-11-19 20:42:10 +01:00
Harald Kuhr
4adc60a6c6 Some minor code clean-up. 2020-11-19 20:35:37 +01:00
Harald Kuhr
622c6f40d4 Getting rid of more JUnit deprecation. 2020-10-13 19:29:58 +02:00
Harald Kuhr
107da17ca9 Dependabot broke my build... 2020-10-13 19:16:58 +02:00
Koen De Groote
aff31ebd1b Intellij suggested changes from static code analysis. 2020-01-28 16:18:07 +01:00
Harald Kuhr
e5c6832ec0 #490: Allow writing more TIFF fields. 2020-01-13 21:05:04 +01:00
Harald Kuhr
51ace4ca7f #490: Refactorings, added initial detection of linked/unlinked segments, more tests. 2020-01-09 19:17:35 +01:00
Harald Kuhr
9e23413456 Fixed JavaDoc errors to enable Java 8 build. 2019-08-10 00:41:36 +02:00
Harald Kuhr
b0b5de5fa4 #477: Better tests to for cyclic loops in IFDs. 2019-08-09 19:32:52 +02:00
Harald Kuhr
8247861095 #492: Now correctly parses multiple strings for ASCII fields. 2019-08-08 23:03:13 +02:00
Harald Kuhr
8480c929c1 #477: Avoid cyclic loops in IFDs. 2019-08-08 22:41:41 +02:00
Harald Kuhr
e8d1b999a2 #469 Fix for OOME while reading Exif with corrupted IFDs/counts 2019-08-07 15:55:24 +02:00
Harald Kuhr
a7b374e51a #311 Updated some more license headers that was left out in the initial change. 2018-09-07 21:07:08 +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
7ab72f0161 #329 JPEGImageReader endless loop fix 2018-05-22 21:10:57 +02:00
Harald Kuhr
c294c5869c #368 related clean-up 2018-01-17 19:24:31 +01:00
Harald Kuhr
2b29c14593 #368 related clean-up 2018-01-17 18:27:33 +01:00
Harald Kuhr
3f06bbee99 Merge pull request #368 from Schmidor/invalidIDFpointer
An invalid IFD pointer caused creating an empty IFD Directory
2018-01-17 18:18:05 +01:00
Harald Kuhr
6936e7cbb2 #403 Test case for uncommon resource. 2018-01-15 15:03:23 +01:00
Harald Kuhr
c8a19418eb #403 Support for uncommon PSD resource magic: MeSa, PHUT, AgHg and DCSR 2018-01-06 21:07:15 +01:00
Harald Kuhr
1c27b58598 #390 Deferred parsing of embedded resources. Allows reading pixel data for images with unparseable metadata.
Broken metadata is now ignored + warning, rather than causing exceptions.
2017-11-05 10:29:49 +01:00
Harald Kuhr
792b531b0e #342 Initial BigTIFF support 2017-08-21 21:59:09 +02:00
Oliver Schmidtmer
acad978f71 An invalid IFD pointer caused creating an empty IFD Directory 2017-08-02 16:31:43 +02:00