Closed ataylor32 closed 5 years ago
:thinking:
I have a big app that uses this plugin.... Every now and then some users complain about image quality..... I think JPEG is more compressed thus should have less quality but this might be problem they are having..... (PNG)
I'm performing some tests and the results are promising.
Saving 3 images. First 3 lines are milliseconds taken to save in jpeg
and next 3 are milliseconds taken to save in png
like now.
It's almost implemented. Will finish tomorrow night and test and commit....
@ataylor32 please test it and give me some feedback if everything is ok.
I haven't tested on iOS yet, but I tested on Android and it worked fine. Thank you very much!
ooooooooooops!
I totally forgot about iOS..... I don't know Swift or whatever so.........
Probably better to reopen this issue and tag it as "iOS help needed"
Thoughts?
I believe it's actually Objective-C. I'm not familiar with it myself, but I looked at the code. There's significantly less code compared to Android. I didn't see anything about image format, so maybe it detects the format with magic and does the right thing. So maybe it will just work. I'll test it at some point and let you know how it goes.
Yeah, Objective-C.
Yeah it should just work.... Unless me passing an extra argument messes with something....
P.S. @ataylor32 would you mind staring this repo? Thanks.
Starred
Thanks. It's so that this repo gets more visibility. I was even thinking making it a stand alone repo instead of a fork and renaming the plugin and publishing to npm....
I was able to test on iOS today and both image formats work just fine.
:+1: yeah, it doesnt have effect.... it will save in whatever format iOS saves....
It looks like this issue was never resolved:
https://github.com/devgeeks/Canvas2ImagePlugin/issues/12
I'm working on an app that would benefit from this.