Commit Graph

195 Commits

Author SHA1 Message Date
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
DreamPiggy 3775b895fb Fix the thread safe issue for accessing array with index, which may happend during incremental decoding 2022-09-09 18:47:58 +08:00
DreamPiggy 8a0c5e1ae0 Bumped version to 0.9.0 2022-07-03 18:19:26 +08:00
DreamPiggy c3797b9992
Merge pull request #65 from SDWebImage/fix_encode_maxPixelSize_5_13
Fix the encoding maxPixelSize logic using 5.13.0 API
2022-07-03 17:56:03 +08:00
DreamPiggy 52b24f60a3 Fix the encoding maxPixelSize logic
using the new calculation from SDWebImage Core
2022-06-22 17:51:33 +08:00
DreamPiggy 18834cac00 Bumped version to 0.8.5 2022-06-22 17:05:26 +08:00
DreamPiggy 2a6c8fac7d
Merge pull request #66 from SDWebImage/fix_encode_maxPixelSize
Fix the encoding maxPixelSize logic (patch)
2022-06-22 17:03:13 +08:00
DreamPiggy eefd749a1f Fix the encoding maxPixelSize logic (patch) 2022-06-22 17:00:21 +08:00
DreamPiggy 87551c267a
Remove the unused define
Code typo fix
2021-07-31 21:41:38 +08:00
DreamPiggy 95a6838df1 Bumped version to 0.8.4 2021-05-06 16:33:43 +08:00
DreamPiggy 3a7ac0f1e3
Merge pull request #57 from daltonclaybrook/carthage_framework_search_paths_fix
Update framework search paths to find XCFrameworks
2021-05-06 16:30:00 +08:00
Dalton Claybrook 0d018b5601 Add frameworks search path for build folder root (to find XCFrameworks) 2021-05-05 22:09:16 -04:00
DreamPiggy a1ea3c7176 Bumped version to 0.8.3 2021-02-24 20:41:50 +08:00
DreamPiggy 9d3c8fdc20
Merge pull request #54 from SDWebImage/bugfix_encoding_leak
Fix the encoding leak when input CGImage is not RGBA8888 or RGB888
2021-02-24 20:40:31 +08:00
DreamPiggy 44b1aae3c9 Fix the encoding leak when input CGImage is not RGBA8888 or RGB888 2021-02-24 20:17:13 +08:00
DreamPiggy 7d68eded0c Bumped version to 0.8.2 2021-02-02 15:52:23 +08:00