SDWebImage / SDWebImageWebPCoder

A WebP coder plugin for SDWebImage, use libwebp
MIT License
221 stars 86 forks source link

_limitBytes type error #109

Closed JiaqiSun closed 6 months ago

JiaqiSun commented 7 months ago

line 973

NSUInteger limitBytes = 0; NSNumber *limitBytesValue = options[SDImageCoderDecodeScaleDownLimitBytes]; if (limitBytesValue != nil) { limitBytes = limitBytesValue.unsignedIntegerValue; } _limitBytes = limitBytes; ❌❌❌ ERROR: limitBytes = 62914560, but _limitBytes = 1。❌❌❌ // Scale down to limit bytes if need if (_limitBytes > 0) { // Hack 32 BitsPerPixel CGSize imageSize = CGSizeMake(_canvasWidth, _canvasHeight); CGSize framePixelSize = SDCalculateScaleDownPixelSize(_limitBytes, imageSize, _frameCount, 4); // Override thumbnail size _thumbnailSize = framePixelSize; _preserveAspectRatio = YES; } image image

dreampiggy commented 6 months ago

Seems I didn't release a new version for this ?

dreampiggy commented 6 months ago

Release 0.14.6