seanooi / iOS-WebP

Google's WebP image format decoder and encoder for iOS
http://seanooi.github.io/iOS-WebP/
MIT License
856 stars 138 forks source link

Library for Mac OS? #17

Open 0xJimmyBeh opened 9 years ago

0xJimmyBeh commented 9 years ago

@seanooi

Hi,

Is it possible to convert this iOS-WebP library to use in Mac OS? I would like to use this library to convert image to WebP format in Mac OS.

Thanks.

seanooi commented 9 years ago

Hi, I haven't had any experience developing for MacOS, but I don't think it's that much of a difference compared to iOS. I might try taking a stab at it when I'm free, but in the mean time, feel free to take a gander at it.

0xJimmyBeh commented 9 years ago

@seanooi

Thanks for your reply.

I have try modified to work in MacOS but failure as i have no experience developing for MacOS too.

Between, i found that converting image to WebP take very long time in device after picked from photo gallery until it show. A 350x500 image take around 6s and a 1024x768 take around 15s-20s.

To compare the time, NSData imageData = UIImageJPEGRepresentation(img); <- mostly 1s NSData imageData = UIImagePngRepresentation(img); <- take 3s-8s

Is there any way to improve the conversion time?