James Jackson-South
b8fcdda44a
Backport - WEBP : Use Correct Width With AlphaDecoder
1 year ago
James Jackson-South
44b124b08a
Add failing test
1 year ago
Brian Popow
978aff8208
Add test case for issue 2679
2 years ago
James Jackson-South
d7f7d5ae13
Correctly break during decoding
2 years ago
James Jackson-South
449dba3d8c
Backport fix.
2 years ago
Brian Popow
cc39c502ac
Add test case for issue 2763
2 years ago
James Jackson-South
fae857fb1c
Clamp JPEG quality estimation results.
2 years ago
James Jackson-South
e4ba5d30d7
Decode LZW row by row
2 years ago
James Jackson-South
9f889f75e7
Handle out of bounds Gif LZW max code
2 years ago
舰队的偶像-岛风酱!
237d129afc
Update Tests
Signed-off-by: 舰队的偶像-岛风酱! <frg2089@outlook.com>
2 years ago
舰队的偶像-岛风酱!
bad83f9a90
Update identifiers
Signed-off-by: 舰队的偶像-岛风酱! <frg2089@outlook.com>
2 years ago
Poker
b222a6733e
Add test files
2 years ago
Brian Popow
ede2f2d2d1
GifDecoder: Limit lzw bits to a maximum of 12 bits ( #2744 )
* Limit lzw bits to a maximum of 12 bits, fixes issue #2743
* Dispose currentLocalColorTable in final block
* Revert "Dispose currentLocalColorTable in final block"
This reverts commit 35ea961552 .
* Don't throw; return.
---------
Co-authored-by: James Jackson-South <james_south@hotmail.com>
2 years ago
舰队的偶像-岛风酱!
4832d8f24a
Add Icon Support
- Ico Decoder
- Ico Detector
- Ico Detector UnitTest
- Cur Decoder
- Cur Detector
- Cur Detector UnitTest
Signed-off-by: 舰队的偶像-岛风酱! <frg2089@outlook.com>
2 years ago
James Jackson-South
fb64b3367f
Clamp read palette indices.
2 years ago
James Jackson-South
63d4b2028a
Fix args and add tests
2 years ago
SpaceCheetah
d15a2e79a4
Add test for default image not animated
2 years ago
SpaceCheetah
417667a12c
Add test
2 years ago
SpaceCheetah
b29962abca
Add test for default image not animated
2 years ago
SpaceCheetah
5d9e3051cb
Add test
2 years ago
James Jackson-South
623ad5defd
Only exit after multiple EOF hits
2 years ago
James Jackson-South
382ee7fb23
Only exit after multiple EOF hits
2 years ago
James Jackson-South
edc87ad90d
Limit ancillary chunk size.
2 years ago
James Jackson-South
f44b761f3b
Add fixes 2668, 2676, and 2677 to main ( #2678 )
* Prevent underflow
* Fix file name
* Revert "Fix file name"
This reverts commit 15619ecd88 .
* Update AlphaDecoder.cs
* Use a smarter approach to determine the transparent index
* Fix casing
* Update src/ImageSharp/Formats/Webp/AlphaDecoder.cs
Co-authored-by: Günther Foidl <gue@korporal.at>
* Update Issue2668_Quantized_Encode_Alpha_Rgba32_Issue_2668.png
* Normalize Color API
* Aggressive inlining
---------
Co-authored-by: Günther Foidl <gue@korporal.at>
2 years ago
James Jackson-South
ed2cd3184f
Fix casing
2 years ago
James Jackson-South
2a548818ac
Use a smarter approach to determine the transparent index
2 years ago
James Jackson-South
12d05b77cd
Revert "Fix file name"
This reverts commit 15619ecd88 .
2 years ago
James Jackson-South
15619ecd88
Fix file name
2 years ago
James Jackson-South
3c65383dec
Prevent underflow
2 years ago
James Jackson-South
83ecbdb19f
Fix path
2 years ago
James Jackson-South
b4049ce517
Don't skip data read on animation and frame control chunks
2 years ago
Brian Popow
1c2bfd8ebf
Add test for issue 2629
2 years ago
Robert Mutniański
bb9ed65333
add jpeg com marker support
2 years ago
James Jackson-South
51193111a1
Fix handling gif encoding for global palettes - Main ( #2615 )
* Handle dedup of local palette of 256 length
* handle when foreground overhangs bottom of background
* prevent potential overflow
* reduce to a single par of clamping operations
* correctly calculate Rect when negative target set
* Handle global ani with 256 palette and no trans
* Bump diff for windows
---------
Co-authored-by: Scott Williams <tocsoft@gmail.com>
Co-authored-by: Scott Williams <166440+tocsoft@users.noreply.github.com>
2 years ago
James Jackson-South
ad1b0e6dad
Fix handling gif encoding for global palettes. ( #2614 )
* Handle global ani with 256 palette and no trans
* Bump diff for windows
2 years ago
James Jackson-South
bec2c385f3
Handle dedup of local palette of 256 length ( #2607 )
2 years ago
James Jackson-South
f3ff11ea6b
Handle dedup of local palette of 256 length
2 years ago
James Jackson-South
2200ac2b3c
Add test
2 years ago
James Jackson-South
3d9ceaa8fa
Allow decoding early EOF
2 years ago
James Jackson-South
a6f96f775e
Optimize and fix deduper
2 years ago
Brian Popow
b46ab5af84
Explicitly set BitsPerPixel and BitsPerSample to 1 for bicolor compressed images, fixes #2587
2 years ago
Tammo Hinrichs
fabfd5bde1
Added a couple of tests for CicpProfile
2 years ago
James Jackson-South
958c9c9b10
Deduper works
2 years ago
James Jackson-South
a477ac13bc
Use correct alpha blending
2 years ago
James Jackson-South
66f444d200
Fix alpha blending and add tests
2 years ago
Jose Elias dos Santos
c7f3aa40cb
[fix]: Fixed Unknown App0 Marker add profileResolver missing
2 years ago
James Jackson-South
df2f6987a5
Do not attempt to read data for chunks of length 0.
2 years ago
Anton Firszov
d76fe6f6ae
PBM decoder robustness improvements and BufferedReadStream observability ( #2551 )
* handle premature EOF in the PBM decoder
* BufferedReadStreamExtensions: remove the 'Try' prefix
* count EOF hits in BufferedReadStream
* use EofHitCounter in pbm tests
* Naming convention tweaks
---------
Co-authored-by: James Jackson-South <james_south@hotmail.com>
2 years ago
James Jackson-South
b8e8b8613d
Tiff decoding robustness improvements ( #2550 )
* Faster Handling of circular offsets
* Handle early EOF during ZLib inflate
* more checks
---------
Co-authored-by: antonfirsov <antonfir@gmail.com>
2 years ago
Brian Popow
c5eed0e537
Add webp decoder option to handle the background color in ANIM chunk ( #2547 )
* Add webp decoder option BackgroundColorHandling to decide howto handle the background color in the ANIM chunk
* Add test for Issue 2528
* Update src/ImageSharp/Formats/Webp/BackgroundColorHandling.cs
Co-authored-by: James Jackson-South <james_south@hotmail.com>
* Fix path to test file
* Another attempt fixing the file path: path should be lower case
* Revert fa4febf7
---------
Co-authored-by: James Jackson-South <james_south@hotmail.com>
2 years ago