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

Contrast Issue #18

Open
zopanix opened this issue Jun 17, 2013 · 0 comments
Open

Contrast Issue #18

zopanix opened this issue Jun 17, 2013 · 0 comments

Comments

@zopanix
Copy link

zopanix commented Jun 17, 2013

Hi,

First of all, I love the library! it's great bud I got a small question. I know a issue like this was already posted before, bud I got the same issue. Basically, I change the contrast of an image, then I save the image as a file. It displays great bud when i open the saved file, it's psychedelic, and it isn't applied everywhere. You said on the other issue that it was something about inverting RGB vs BRG or something like that. I'm not a specialist in the field ^^'. I have the problem with contrast only. When I apply contrast on the image, and i save it, it's not the expected result.

I'm attaching an example with original, printscreen of canvas, and saved file so you can see the differences.

EDIT:

Here's the code that get the data :

var dataURL = canvas.toDataURL("image/png");
var base64 = dataURL.replace(/^data:image/(png|jpg);base64,/, "");

FYI :
OS: Win 7 SP1
Browser: Chrome 27
Graphic Card: ATI 5650M (not sure it's usefull)
photo 6
canvas_preview
savedfile

Thanks for your response

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