James Jackson-South
fb64b3367f
Clamp read palette indices.
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
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
2a548818ac
Use a smarter approach to determine the transparent index
2 years ago
James Jackson-South
b4049ce517
Don't skip data read on animation and frame control chunks
2 years ago
Tammo Hinrichs
43cf0bcca4
fixed png file casing
2 years ago
James Jackson-South
3d9ceaa8fa
Allow decoding early EOF
2 years ago
Tammo Hinrichs
fabfd5bde1
Added a couple of tests for CicpProfile
3 years ago
James Jackson-South
66f444d200
Fix alpha blending and add tests
3 years ago
James Jackson-South
df2f6987a5
Do not attempt to read data for chunks of length 0.
3 years ago
Poker
01caebd34a
Add UnitTest
3 years ago
Poker
7b6c32d54b
implement APNG encoder
3 years ago
James Jackson-South
42336ba7f9
Fix #2447
3 years ago
James Jackson-South
ae3900df7a
Use more accurate bit for alpha lookup. Fix #2469
3 years ago
James Jackson-South
f941581de1
Add test for #2259
4 years ago
Brian Popow
3c2f8bfe33
Add test for #2217
4 years ago
Brian Popow
0e93171533
Add tests for #2209
4 years ago
Brian Popow
26a742eb92
Additional tests for decoding png's with filter
4 years ago
Brian Popow
a921c57efc
Add benchmark file for average filter with 4bpp
4 years ago
Brian Popow
0fa6085611
Throw exception, if gamma chunk does not contain enough data
4 years ago
Brian Popow
d98171fa54
Add tests for missing palette chunk
4 years ago
Brian Popow
8b8993dadc
Add encode lossy webp with alpha tests
4 years ago
Ynse Hoornenborg
b8bed9f69e
All image formats round trip
4 years ago
Brian Popow
3310fa6ffd
Add test for wrong CRC in IDAT chunk
4 years ago
WINDEV2110EVAL\User
2c12c78e83
Added support for loading exif data from pre-2017 pngs from the "raw profile type exif" text chunk.
5 years ago
Brian Popow
91f3f6a49f
Change ConvertRgbToYuv with alpha test to use a fixed image as input
5 years ago
Gerard Gunnewijk
b055e8b14b
Renamed the file and file reference
5 years ago
Gerard Gunnewijk
c1e8c15b88
Added test image & test method
5 years ago
Gerard Gunnewijk
f7bc8d7747
Added test image & test method
5 years ago
James Jackson-South
cfd123239d
Ensure LFS
5 years ago
Franz Häring
2d3ab4ebd5
New overloads for binary threshold operations. The new argument ColorComponent defines the scalar color component to be used for threshold comparison: Luminance, Saturation or MaxChroma. Luminance is default and identical to previous versions. Saturation is the HSL saturation component. MaxChroma is calculated as the maximum of YCbCr chroma value, i.e. Cb and Cr distance from achromatic value. Background: This component shall discriminate colorful parts from achromatic parts in human perception. Very dark pixels, which are perceived as near black, can have high HSL saturation values if e.g. (rgb)==(4,0,0); this would definitely not be perceived as colorful by a human. The MaxChroma component will calculate them low.
5 years ago
James Jackson-South
abe1263b17
Auto repair Png options to use Bit8. Fixes #935
6 years ago
Brian Popow
9e7cd79b37
Add tests to ensure chunk order
6 years ago
Brian Popow
54560b1614
Fix png test image: Some text chunks unintentional changed to none compressed
6 years ago
Brian Popow
b9307edd9d
Identify reads now exif data
6 years ago
Brian Popow
44ca0f778a
Additional png test cases
6 years ago
James Jackson-South
5f43656f8c
Always read CRC.
6 years ago
Brian Popow
4d3d0fb2f5
Add tests for the AdaptiveThreshold processor
6 years ago
James Jackson-South
dc39931def
Don't backpeddle when reading chunk lengths. Fix #1127
6 years ago
James Jackson-South
ba38de5843
Add dither scaling and simplify API.
6 years ago
James Jackson-South
94f69b67f9
Make dither parallel and add benchmarks.
6 years ago
James Jackson-South
042a6bef53
Cleanup and fix tests.
6 years ago
James Jackson-South
dc090c23ec
Fix #1047
7 years ago
Brian Popow
c3d5f4bd29
Add unit test for issue #1014
7 years ago
James Jackson-South
cf0bb2540f
Fix #1004
7 years ago
Brian Popow
d9925234a4
Add support for read and write tEXt, iTXt and zTXt chunks ( #951 )
* Add support for writing tEXt chunks
* Add support for reading zTXt chunks
* Add check, if keyword is valid
* Add support for reading iTXt chunks
* Add support for writing iTXt chunks
* Remove Test Decode_TextEncodingSetToUnicode_TextIsReadWithCorrectEncoding: Assertion is wrong, the correct keyword name is "Software"
* Add support for writing zTXt chunk
* Add an encoder Option to enable compression when the string is larger than a given threshold
* Moved uncompressing text into separate method
* Remove textEncoding option from png decoder options: the encoding is determined by the specification: https://www.w3.org/TR/PNG/#11zTXt
* Removed invalid compressed zTXt chunk from test image
* Revert accidentally committed changes to Sandbox Program.cs
* Review adjustments
* Using 1024 bytes as a limit when to compress text as recommended by the spec
* Fix inconsistent line endings
* Trim leading and trailing whitespace on png keywords
* Move some metadata related tests into GifMetaDataTests.cs
* Add test case for gif with large text
* Gif text metadata is now a list of strings
* Encoder writes each comment as a separate block
* Adjustment of the Tests to the recent changes
* Move comments to GifMetadata
* Move Png TextData to format PngMetaData
7 years ago