@mmrize
Thank you so much that you try tackling this issue together!!
I tested both paths as recommended:
-
fswebcam --resolution 3280x2464
This gives me a wonderful picture at the required resolution. It is above 2MB so I didn’t upload it.
-
Via node-webcam.js
This doesn’t shoot a picture (which should be in the “/home/pi”-directory, right?). The following outputs appear in the console, which leave me wondering what I should do:
pi@raspberrypi:~/MagicMirror/modules/MMM-Selfieshot/node_modules/node-webcam/bin $ node ./node-webcam.js --w 3280 --h 2464 --l ~/picture.jpg
Options
Main {
width: [ [Function: Number], 1280 ],
height: [ [Function: Number], 720 ],
delay: [ [Function: Number], 0 ],
device: [ [Function: String], false ],
quality: [ [Function: Number], 100 ],
output: [ [Function: String], 'jpeg' ],
verbose: [ [Function: Boolean], true ],
help: [ [Function: Boolean], false ],
version: [ [Function: Boolean], false ],
greyscale: [ [Function: Boolean], false ],
rotation: [ [Function: String], false ],
topBanner: [ [Function: Boolean], false ],
bottomBanner: [ [Function: Boolean], false ],
skip: [ [Function: Number], 0 ],
location: <ref *2> {
resolve: [Function: resolve],
normalize: [Function: normalize],
isAbsolute: [Function: isAbsolute],
join: [Function: join],
relative: [Function: relative],
toNamespacedPath: [Function: toNamespacedPath],
dirname: [Function: dirname],
basename: [Function: basename],
extname: [Function: extname],
format: [Function: bound _format],
parse: [Function: parse],
sep: '/',
delimiter: ':',
win32: <ref *1> {
resolve: [Function: resolve],
normalize: [Function: normalize],
isAbsolute: [Function: isAbsolute],
join: [Function: join],
relative: [Function: relative],
toNamespacedPath: [Function: toNamespacedPath],
dirname: [Function: dirname],
basename: [Function: basename],
extname: [Function: extname],
format: [Function: bound _format],
parse: [Function: parse],
sep: '\\',
delimiter: ';',
win32: [Circular *1],
posix: [Circular *2],
_makeLong: [Function: toNamespacedPath]
},
posix: [Circular *2],
_makeLong: [Function: toNamespacedPath]
}
}
Shorthand {
w: [ '--width' ],
h: [ '--help' ],
D: [ '--delay' ],
d: [ '--device' ],
q: [ '--quality' ],
out: [ '--output' ],
v: [ '--version' ],
g: [ '--greyscale' ],
r: [ '--rotation' ],
l: [ '--location' ],
S: [ '--skip' ]
}