Skip to content
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

Uncaught TypeError: Assignment to constant variable. #2

Open
Blatman opened this issue Nov 13, 2018 · 0 comments
Open

Uncaught TypeError: Assignment to constant variable. #2

Blatman opened this issue Nov 13, 2018 · 0 comments

Comments

@Blatman
Copy link

Blatman commented Nov 13, 2018

I get this error when trying to use setBrightnessLevel and setCustomGammaCurve

Uncaught TypeError: Assignment to constant variable .... (@ dcraw.js:4)

Just seems to me that only the boolean options work with this code unless I am missing a trick with the syntax.
All the examples are with booleans as well

Tried -

var result = dcraw(buf, { setBrightnessLevel: 1.0 });  - fails and this is default
var result = dcraw(buf, { setBrightnessLevel: '1.0' });  - fails


var result = dcraw(buf, { setCustomGammaCurve: 2.4 12.92 }}); - fails
var result = dcraw(buf, { setCustomGammaCurve: 2.4, 12.92 }}); - fails
var result = dcraw(buf, { setCustomGammaCurve: '2.4', '12.92' }}); - fails
var result = dcraw(buf, { setCustomGammaCurve: { p: 2.4, ts: 12.92 }}); - fails


var result = dcraw(buf, { exportAsTiff: true }); - works OK 
var result = dcraw(buf, { extractThumbnail: true }); - works OK
var result = dcraw(buf, { });  // PPM - works OK
var result = dcraw(buf, { useRawMode: true });  - works OK

Cheers,

Blane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant