Andreas Eriksson
ac1905328d
Fix Identify returning incorrect frame count for animated PNGs
The Identify method had two bugs when processing fdAT (FrameData) chunks:
1. A spurious Skip(4) before SkipChunkDataAndCrc caused the stream to
be misaligned by 4 bytes, since chunk.Length already includes the
4-byte sequence number.
2. Unlike Decode, which consumes all fdAT chunks for a frame in one shot
via ReadScanlines + ReadNextFrameDataChunk, Identify processed them
individually, calling InitializeFrameMetadata for each chunk and
inflating the frame count.
The fix removes the extra Skip(4) and adds SkipRemainingFrameDataChunks
to consume all continuation fdAT chunks for a frame, mirroring how
ReadNextFrameDataChunk works during decoding.
2 months ago
James Jackson-South
bd19151219
Merge pull request #3094 from SixLabors/bp/Issue3093
PNG: Throw InvalidImageContentException when frame control chunk does not have enough data
2 months ago
Brian Popow
4e81c02b5d
Add test case for Issue #3093
2 months ago
Brian Popow
43f952cf00
Throw InvalidImageContentException when frame control chunk does not have enough data
2 months ago
James Jackson-South
36334cd9ef
Merge pull request #3089 from SixLabors/js/pixel-blenders
Expand pixel blender API to support single color bulk operations and fix transforms.
2 months ago
James Jackson-South
4b30c4ea10
Expand pixel blender API to support single color bulk operations
2 months ago
James Jackson-South
fcd8087a8a
Merge pull request #3084 from SixLabors/bp/fixIssue3082
PNG: Should Not Throw Exception when alpha.Length > colorTable.Length in tRNS chunk
2 months ago
Brian Popow
c512b142f9
If alpha length is greater then colorTable, slice length to colorTable length
2 months ago
Brian Popow
9c9b6124f3
Add test case for alpha.Length > colorTable.Length
2 months ago
Brian Popow
d355fc0e32
Throw Exception when alpha.Length > colorTable.Length in tRNS chunk
2 months ago
James Jackson-South
89face0b89
Merge pull request #3081 from SixLabors/bp/fixIssue3079
Add checks, if enough data is present when reading PNG text chunks
2 months ago
Brian Popow
8d78fe0b08
Add test case for truncated data after language tag
2 months ago
Brian Popow
52c74b563e
Add check, if translatedKeywordLength is < 0
2 months ago
Brian Popow
457436d970
Add test case for not enough data reading InternationalText chunk
2 months ago
Brian Popow
fca50b9678
Add check for enough data in ReadInternationalTextChunk()
2 months ago
Brian Popow
eab4147235
Add test case for not enough data after keyword end
2 months ago
Brian Popow
ba01f9c125
Add check in ReadCompressedTextChunk() for enough data after keyword end
2 months ago
James Jackson-South
533ed51d3a
Merge pull request #3076 from SixLabors/dependabot/github_actions/actions/upload-artifact-7
Bump actions/upload-artifact from 6 to 7
2 months ago
James Jackson-South
65dd8bd587
Merge pull request #3080 from SixLabors/bp/fixIssue3078
Add check for span length in parse PNG pHYs chunk
2 months ago
James Jackson-South
5842434b7d
Merge branch 'main' into bp/fixIssue3078
2 months ago
James Jackson-South
0d53f96665
Merge pull request #3077 from SixLabors/js/transform-enhancements
Add Matrix4x4 transform overloads and corresponding tests
2 months ago
James Jackson-South
fb7464e10f
Update README.md
2 months ago
James Jackson-South
b0f81fac2d
Add Clear method to matrix builders.
2 months ago
Brian Popow
60c556cd2a
Remove not used using, change ImageFormatException to InvalidImageContentException
2 months ago
Brian Popow
93b9345ab8
Add test case for #3078
2 months ago
Brian Popow
be852be474
Add check for span length in parse png physical chunk
2 months ago
dependabot[bot]
96fa49feea
Bump actions/upload-artifact from 6 to 7
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
James Jackson-South
fefab915c8
Merge branch 'main' into js/transform-enhancements
2 months ago
James Jackson-South
d734a16049
Merge pull request #3057 from SixLabors/dependabot/github_actions/actions/checkout-6
Bump actions/checkout from 4 to 6
2 months ago
James Jackson-South
7632f8e941
Add Matrix4x4 transform overloads and tests
2 months ago
James Jackson-South
68ccc1d9ed
Merge branch 'main' into dependabot/github_actions/actions/checkout-6
2 months ago
James Jackson-South
461c021608
Merge pull request #3075 from SixLabors/bp/fixIssue3074
Add check, if Offset is greater then stream length when reading bitmap colorMapSize
2 months ago
Brian Popow
7d608dd087
Add test case for issue #3074
2 months ago
Brian Popow
4b983db6b2
Add check, if Offset is greater then stream length when reading colorMapSize
2 months ago
James Jackson-South
6bb36244c6
Merge branch 'main' into dependabot/github_actions/actions/checkout-6
2 months ago
James Jackson-South
67bac23cff
Merge pull request #3073 from SixLabors/js/antialis-threshold-
Replace AntialiasSubpixelDepth with AntialiasThreshold
2 months ago
James Jackson-South
e6acbab996
Merge branch 'main' into js/antialis-threshold-
2 months ago
James Jackson-South
dd827571d1
Replace AntialiasSubpixelDepth with AntialiasThreshold
2 months ago
James Jackson-South
4ed9b72ecc
Merge pull request #3072 from SixLabors/js/fix-3071
JPEG - Throw explicit ImageContentException on missing marker.
2 months ago
James Jackson-South
ae6bdbf36f
JPEG - Throw explicit ImageContentException on missing marker.
2 months ago
James Jackson-South
4bb4bafe81
Merge pull request #3070 from SixLabors/js/fix-3064
Add sparse ICC v4 mAB/mBA LUT support for ICC conversion
2 months ago
James Jackson-South
4fc4d660fa
Respond to feedback
2 months ago
James Jackson-South
ae9ca4c5bf
Fix #3064
R
2 months ago
James Jackson-South
ec79a2f2e0
Merge pull request #3069 from SixLabors/js/v4-fix-3067
Throw explicit InvalidImageContentException when BMP BPP is invalid.
2 months ago
James Jackson-South
128d6f943a
Update IcoDecoderTests.cs
3 months ago
James Jackson-South
3f05cbe4c4
Merge branch 'js/v4-fix-3067' of https://github.com/SixLabors/ImageSharp into js/v4-fix-3067
3 months ago
James Jackson-South
1d87e61a96
Update BmpDecoderCore.cs
3 months ago
James Jackson-South
07d2c04bf1
Potential fix for pull request finding 'Useless assignment to local variable'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
3 months ago
James Jackson-South
34e7f9700d
Fix #3067
3 months ago
dependabot[bot]
8f7dc2c166
Bump actions/checkout from 4 to 6
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v6 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
3 months ago