Commit Graph

102 Commits

Author SHA1 Message Date
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 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 c0c65f1f37 Update with the final changes from SDWebImage Core 2023-07-14 00:11:33 +08:00
DreamPiggy 4b45cdde01 Don't override the isDecoded = YES for non-CGContext drawn CGImage 2023-07-10 23:27:18 +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 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 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 f21f014410 Avoid unused extra copy of MutableData 2023-02-06 22:07:53 +08:00
DreamPiggy d72efcfcb4 Bumped version to 0.10.0 2023-01-17 17:36:39 +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 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 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 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 a1ea3c7176 Bumped version to 0.8.3 2021-02-24 20:41:50 +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
DreamPiggy 1903ac20f3 Fix again for CMYK image 2021-02-01 21:35:49 +08:00
DreamPiggy 777065d638 Fix the similiar case when input image is CMYK image, check color space model as well :) 2021-02-01 21:19:52 +08:00
DreamPiggy cab8cd977c Fix the issue when WebP Encoding grayscale image with only 1 channel, which cause the wrong encoded WebP image (each column repeats 3 times) 2021-02-01 21:03:38 +08:00
DreamPiggy cdf6ce8216 Bumped version to 0.8.1 2020-12-24 20:47:25 +08:00
Antti Kortetmaa 415e6b6fc1 Changed methods getFloatValueFor and getIntValueFor as static C methods. 2020-12-24 11:28:04 +02:00
Antti Kortetmaa a197fa1c21 Fixed issue that caused WebP option that has been set to 0 to be ignored 2020-12-23 17:41:43 +02:00
DreamPiggy 8df7931f95 Bumped version to 0.8.0 2020-12-14 15:03:39 +08:00
DreamPiggy ba51befd7c Replace the dispatch semaphore into os_unfair_lock, copied from SDWebImage Core 2020-12-14 11:53:45 +08:00
DreamPiggy 19b7465dea Update the Xcode Project of WebP encode options 2020-12-14 11:39:03 +08:00
Antti Kortetmaa de7ba8d08e Removed updateWebPOptionsToConfig from the public API of SDImageWebPCoder 2020-12-11 12:09:26 +02:00
Antti Kortetmaa e330f22573 Added unit tests for WebP settings. 2020-12-11 12:03:33 +02:00
Antti Kortetmaa 66cfc23f1c Added new encoding options to WebP encoding 2020-12-11 12:03:33 +02:00
DreamPiggy a0bc7407f0 Bumped version to 0.7.0
Update the README
2020-11-23 11:11:44 +08:00
DreamPiggy 4e362c59b5 Bumped version to 0.6.1
Update the README
2020-04-13 13:22:30 +08:00
DreamPiggy 20ab7d2b44
Merge pull request #41 from SDWebImage/performance_avoid_copy_progressive_data_and_use_lock
Fix the potential buffer crash issue during progressive animated webp decoding, and avoid extra copy for partial image data
2020-04-13 13:18:50 +08:00
DreamPiggy 56ec346a0c Add the support for maxPixelSize encoding options, which will do a thumbnail encoding (5.7's feature) 2020-04-13 11:09:26 +08:00
DreamPiggy 878d64e3e1 Use lock and copy the NSData before recreate the temp demuxer, avoid the extra copy for most cases, and use lock during the demuxer creation to avoid thread-safe issue 2020-04-13 01:26:00 +08:00
DreamPiggy 92e55d4fd6 Bumped version to 0.6.0
Update the README
2020-04-07 20:59:03 +08:00
DreamPiggy 6a0f5dc73c Fix that the max file size encoding need to increase the passes used by libwebp, we choose to use 6 from cwebp command line 2020-04-07 19:45:33 +08:00