gitawego / cordova-screenshot

screenshot plugin for cordova/phonegap
Other
211 stars 167 forks source link

Non working for me #1

Closed webplease closed 10 years ago

webplease commented 10 years ago

Hi,

not working for me in Cordova 3.1 on Android.

Error in Screenshot.java on lines 50,53,59

Why ? :)

gitawego commented 10 years ago

it should work now. the storage folder is sdcard/Pictures/

webplease commented 10 years ago

thanks man :) now compiles ...but not work yet, no save file.

Must I call with navigator.screenshot.save() or navigator.Screenshot.saveScreenshot() ?

gitawego commented 10 years ago

call

navigator.screenshot.save(function(){console.log(arguments)});

you should see 'ok' as callback.

I've tested, it works on my device.

webplease commented 10 years ago

perfect, now works, but saves 2 file with 2 different timestamps

Can I increase PNG quality ?

Thanks very much :)

gitawego commented 10 years ago

no, the PNG quality is already set to 100, and PNG is a lossless format, you can't change it. but you can take screenshot with jpg format. check the readme for more.

webplease commented 10 years ago

perfect :) now works fine.

The problem was the "Gallery" not rescan/refresh media files, so the quality is very low for a while.

Thanks for your job :)

gitawego commented 10 years ago

you are welcome :)