Commit Graph

210 Commits

Author SHA1 Message Date
DreamPiggy 4005a4d618 Copy the macros from SDWebImage Core repo
These macro don't need compile (that SDInternalMacros.m provided the symbol), just make the compiler be able to find the search path and expand is OK
2024-02-05 22:43:27 +08:00
DreamPiggy 3f8105d799 Bumped version to 0.14.4 2024-02-04 19:02:54 +08:00
DreamPiggy 76423a1a88
Merge pull request #96 from SDWebImage/bugfix_exif_orientation_encode
Fix the issue when EXIF orientation does not keep during the libwebp encoding
2024-02-04 19:00:31 +08:00
DreamPiggy ee4f321d36 Fix the issue when EXIF orientation does not keep during the libwebp encoding
Using transform currently
2024-02-04 19:00:16 +08:00
DreamPiggy acfb824ca5 Bumped version to 0.14.3 2024-01-30 16:43:01 +08:00
DreamPiggy 84e43762ad
Merge pull request #95 from SDWebImage/bugfix/monochome_colorspace
Fix the issue when monochome colorspace cause the WebP encoding failed
2024-01-30 16:40:55 +08:00
DreamPiggy f146fa49a6 Temp update the test case `testWebPEncodingWithICCProfile` 2024-01-30 16:15:17 +08:00
DreamPiggy bf6de35302 Added test case `test46WebPEncodingMonochrome` 2024-01-30 15:15:48 +08:00
DreamPiggy 304bed2c4b Fix the issue when monochome colorspace cause the WebP encoding failed
Just translate into RGBA first, don't need extra code to re-implements monochrome WebP encoding
2024-01-30 15:07:23 +08:00
DreamPiggy db4603921b Bumped version to 0.14.2 2023-11-09 15:40:55 +08:00
DreamPiggy 64dd70aed5
Merge pull request #90 from SDWebImage/bugfix/webp_encoding_colorspace_mac
Fix the WebP encoding which loss the image's input color space
2023-11-08 21:20:20 +08:00
DreamPiggy 01f9d34996 Fix the macOS deployment target 2023-11-08 20:51:08 +08:00
DreamPiggy 4ddfd5f60e Fix some test cases for macOS 2023-11-08 18:59:59 +08:00
DreamPiggy 835eb13e30 Change the encoding test into official macOS unit test
Added `testWebPEncodingWithICCProfile`
2023-11-08 18:17:07 +08:00
DreamPiggy daa8373449 Keep the rendering intent information from CGImage as well 2023-11-08 17:47:07 +08:00
DreamPiggy 8113caf1b7 Fix the WebP encoding which loss the image's input color space
Should prefer to use input color space and only use device RGB as fallback
2023-11-08 17:44:21 +08:00
DreamPiggy a47710f9f2 Added macOS Demo for webp encoding test 2023-11-08 17:37:37 +08:00
DreamPiggy 7e70ec8165 Bumped version to 0.14.1 2023-10-27 00:41:08 +08:00
DreamPiggy d91987f623
Support to detect the RGB16 bitmap info, fix the iOS 11- decode issues (#87)
Support to detect the RGB 16 bits bitmap info

Also, fallback when the libwebp don't support the target bitmap info, should not just return nil
2023-10-27 00:39:06 +08:00
DreamPiggy b442fafefe Bumped version to 0.14.0 2023-10-08 16:28:47 +08:00
Liu YuanYuan 64cdf3e756
Enable lossless mode (#85)
Enable lossless mode with `SDImageCoderEncodeWebPLossless`

---------

Co-authored-by: DreamPiggy <lizhuoli1126@126.com>
2023-10-08 16:22:36 +08:00
DreamPiggy 3819cb70fa Bumped version to 0.13.0 2023-07-14 00:17:07 +08:00
DreamPiggy 3b274872cb
Merge pull request #77 from SDWebImage/performance/byte_alignment
Avoid force-decode by apply the byte alignment for static WebP images, using runtime detection for bitmap info
2023-07-14 00:15:16 +08:00
DreamPiggy c0c65f1f37 Update with the final changes from SDWebImage Core 2023-07-14 00:11:33 +08:00
DreamPiggy 8bae908c18 Added the test case `testWebPDecodeDoesNotTriggerCACopyImage` 2023-07-11 17:16:47 +08:00
DreamPiggy 4b45cdde01 Don't override the isDecoded = YES for non-CGContext drawn CGImage 2023-07-10 23:27:18 +08:00
DreamPiggy 13f640b36d Bump the dependency of SDWebImage 5.17.0 because of new API 2023-07-09 20:42:22 +08:00
DreamPiggy 81969472d3 Avoid force-decode by apply the byte alignment for static WebP images
See:  https://github.com/SDWebImage/SDWebImage/pull/3559
2023-07-09 20:41:13 +08:00
DreamPiggy 76565bc46c Added explicit link to CoreGraphics on CocoaPods 2023-06-14 21:23:22 +08:00
DreamPiggy 9348ad305b Bumped version to 0.12.0 2023-06-14 21:19:40 +08:00
DreamPiggy f4c09076d1
Merge pull request #75 from SDWebImage/feat/limit_bytes
Added the support for 5.16.0+ limit bytes feature from SDWebImage Coder Plugin API
2023-06-14 21:11:54 +08:00
DreamPiggy 1d982f6c75 Fix the CI action and test cases 2023-06-14 20:45:14 +08:00
DreamPiggy ba6fae4d7d Bump the dependency to 5.16.0+ 2023-06-14 17:16:26 +08:00
DreamPiggy 99064f973c Added the support for 5.15.0+ limit bytes feature from SDWebImage Coder Plugin API 2023-06-14 17:13:59 +08:00
DreamPiggy 7087a82a3d Bumped version to 0.11.0 2023-03-16 21:23:44 +08:00
DreamPiggy 3df53551db Added GitHub actions 2023-03-16 21:23:11 +08:00
DreamPiggy 9082448d5d
Merge pull request #73 from SDWebImage/perf/awebp_thumbnail_allocation
Reduce memory usage peak when using thumbnail animated WebP decoding and encoding
2023-03-16 14:53:14 +08:00
DreamPiggy 9dae8d36b9 Refactory thumbnail decoding, use a transformed CGContext instead of full context and re-scale after decode finished
This can help to avoid memory allocation

For encoding, avoid using vImageConvert_AnyToAny and just use it convenience method instead
2023-03-09 13:42:14 +08:00
DreamPiggy c779312836 Use kvImageNoAllocate to avoid extra allocate for vImageBuffer when WebP encoding 2023-03-08 14:40:44 +08:00
DreamPiggy 0b25f9ae03 Support using CoreGraphics to produce scaled down CGImage directly 2023-03-08 14:37:20 +08:00
DreamPiggy e6cd1a9d2c Bumped version to 0.10.1 2023-02-06 22:11:14 +08:00
DreamPiggy e3c34ac58b
Merge pull request #71 from SDWebImage/perf/avoid_unused_copy
Avoid unused extra copy of MutableData
2023-02-06 22:09:50 +08:00
DreamPiggy f21f014410 Avoid unused extra copy of MutableData 2023-02-06 22:07:53 +08:00
DreamPiggy c25a1d2c1b Fix dependency 2023-01-17 17:38:40 +08:00
DreamPiggy d72efcfcb4 Bumped version to 0.10.0 2023-01-17 17:36:39 +08:00
DreamPiggy 5864b77d88
Merge pull request #70 from SDWebImage/feat/encode_with_frames
Adopt 5.15.0's encodedDataWithFrames API
2023-01-17 17:33:48 +08:00
DreamPiggy b0a717871b Update the test case because upstream changes 2023-01-17 17:32:02 +08:00
DreamPiggy 3af65409f2 Adopt 5.15.0's encodedDataWithFrames API 2023-01-17 17:30:35 +08:00
DreamPiggy 4416805045 Bumped version to 0.9.1 2022-09-09 18:51:54 +08:00
DreamPiggy fd36fad3c6
Merge pull request #68 from SDWebImage/bugfix/thread_safe_incremental
Fix the thread safe issue for accessing array with index, which may happend during incremental decoding
2022-09-09 18:51:09 +08:00