James Jackson-South
83ced124c4
Split Vp8LHistogram and clean up
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
antonfirsov
c4150b967c
Disallow allocation attempts of unrepresentable sizes
2 years ago
antonfirsov
bea65987a0
use pinned buffers in Vp8LHistogram
2 years ago
James Jackson-South
3fabb76ab6
Pool Vp8LHistogram memory.
2 years ago
Tomasz Cielecki
f7034ad190
Add GPSHPositioningError exif tag
2 years ago
Tomasz Cielecki
a8086f1352
Change ExifTag TimeZoneOffset to Signed Short
2 years ago
James Jackson-South
31b591a940
Update PngEncoderTests.cs
2 years ago
antonfirsov
fa434dd7f5
Add tests for high precision Color cases
2 years ago
Jeffrey Parker
bf261f0d5e
Stylecop extra blank line issue fixed. Refactored code to extract common logic.
2 years ago
Jeffrey Parker
1e53adf85e
Fix for issue 2504 - ensuring image and individual frame metadata are written out correctly
2 years ago
Anton Firszov
54b7e04f7a
Fix #2518 ( #2519 )
* OilPaint benchmark
* fix #2518
* Update OilPaintingProcessor{TPixel}.cs
* clamp the vector to 0..1 and undo buffer overallocation
* throw ImageProcessingException instead of clamping
---------
Co-authored-by: James Jackson-South <james_south@hotmail.com>
2 years ago
James Jackson-South
ed3860cfda
Handle EOF in Jpeg bit reader when data is bad to prevent DOS attack. ( #2516 )
* Handle EOF in bit reader when data is bad.
* Allow parallel processing of multi-megapixel image
* Stream seek can exceed the length of a stream
* Try triggering on release branches
* Update JpegBitReader.cs
* Skin on Win .NET 6
* All Win OS is an issue
* Address feedback
* add validation to CanIterateWithoutIntOverflow
---------
Co-authored-by: antonfirsov <antonfir@gmail.com>
2 years ago
James Jackson-South
f73cdb0520
Expose non-nullable configuration to remove null check
3 years ago
James Jackson-South
4ef363df5d
Only compare a subset of frames.
3 years ago
James Jackson-South
ef5fe795d0
Prevent crafted DOS attack.
3 years ago
James Jackson-South
98ed0f1070
Refactor and fix gif encoder
3 years ago
LuisAlfredo92
dea1ee891e
Optimizing avoiding casts to byte
Also removing benchmark test and fixing a typo in PngEncoderCore
3 years ago
LuisAlfredo92
ef78f98eb3
Adding Channels and ColorSpace validations to De-/Encoder
I'm not sure the encoder is right
3 years ago
Simona Koníčková
7a2631bdf0
Add assertions for `FileStream` properties
3 years ago
Simona Koníčková
c81e639842
Use `await using` where available
3 years ago
Simona Koníčková
5b1873ee9a
Use `FileOptions.Asynchronous` when doing async IO
3 years ago
LuisAlfredo92
d671006f0e
Reuploading images
3 years ago
LuisAlfredo92
cf3271ec22
Update .gitattributes and deleting images to repush
This should fix the probem of malformed qoi images
3 years ago
LuisAlfredo92
6245666d61
Fixing most of things of review
Also I fixed a little bug with PreviouslySeenPixels array
It's weird, but I don't see any problems with encoding and the tests are ok, I wrote the memory stream to files and they look the same, but the hashes and bytes aren't the same
This is very weird
3 years ago
LuisAlfredo92
aed9acd6bf
Fixing StyleCop
3 years ago
LuisAlfredo92
8729fedbec
Fixing configuration tests
Changing formats from 8 to 9
3 years ago
LuisAlfredo92
c92a4ecb59
Adding extensions was easier than I though
3 years ago
LuisAlfredo92
07e65973a3
Finishing qoi encoder
-Also adding Decode method without TPixel value
-Adding stream end check to decoder (we must discuss if it's necesarry or not)
-formating general code
3 years ago
James Jackson-South
037d6ea582
Allow preservation of png color palette
3 years ago
LuisAlfredo92
a87f78123f
Fixing edge case
See https://github.com/phoboslab/qoi/issues/258 and previous commit
3 years ago
LuisAlfredo92
bca998d91d
Implementing qoi decoder
I need to check https://github.com/phoboslab/qoi/issues/258 because there's a bug with the decoder
3 years ago
James Jackson-South
492507fa2d
Allow JFXX as an App0 marker header
3 years ago
Ynse Hoornenborg
c60cae82ac
Tests
3 years ago
LuisAlfredo92
a1342bf30a
Fixing Qoi detector
-I had several errors about header size comparison and comparing byte arrays, but I've fixed them and tested the Identify function and it works perfect!
3 years ago
LuisAlfredo92
24e5ce6964
Making changes from #2446 review
-Adding validation for size, channels and colorspace
-Refactoring to throw general exceptions
-Creating tests
-Using other better data types
3 years ago
James Jackson-South
ff9ed1259b
Fix operations tests
3 years ago
James Jackson-South
3f65ff61b3
Restore constructor, fix casing
3 years ago
James Jackson-South
bc29fbfb84
Restore tests
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
973e6f1fa9
Fix implementation and tests
3 years ago
James Jackson-South
53510f0220
Add explicit tests for #2450
3 years ago
Gerard Gunnewijk
b4ad3c3009
Added test that shows the issue
3 years ago
Pavel
1630e436b0
Update Directory.Build.targets
Updated SharpZip package version to 1.4.2
3 years ago
James Jackson-South
fc7219d1fa
Add quantizer property tests
3 years ago
Brian Popow
f558e6f574
Add test for issue 2456
3 years ago
Tigran
c09d20e3e9
fix for Retional.FromDouble(0)
3 years ago