-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebP encodedData loads for 30+ seconds #25
Comments
WebP encoding speed is related slow, it use software encoding and VP8 compression algorithm (complicated), compared to the Hardware accelerated JPEG/PNG encoding. (Apple's SoC).
The original image taken on iPhone camera may be really lark, like 4K resolution. If you don't do some pre-scale and try to encode it, you may consume much more time. The suggestion can be like this:
|
If you're intersted the real benchmark or something, compared to JPEG/PNG (Hardware) and WebP (Software). You can try to use my benchmark code demo here, to help you do your decision. https://github.com/dreampiggy/ModernImageFormatBenchmark iPhone XR, iOS 13.0, CompressionQuanlity: 1.0, image: 512x512 pixels
|
The libwebp encoding performance is related to the quality. Try with 0.6.0+ version's |
iOS version: 13.1
iPhone: X
I'm currently using DBAttachmentPickerController to choose from a variety of images, the problem comes when I take a picture directly from the camera and try to upload it to our server. The
SDImageWebPCoder.shared.encodedData
loads for about 30 seconds more less.Here is the code I use
The text was updated successfully, but these errors were encountered: