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

resize from base64 #35

Open
hicTech opened this issue Sep 9, 2014 · 2 comments
Open

resize from base64 #35

hicTech opened this issue Sep 9, 2014 · 2 comments

Comments

@hicTech
Copy link

hicTech commented Sep 9, 2014

Looking at examples I can wonder how can I resize an image starting from a base64 coded one. Basically I have base64 coded image and want resize it.
I've tried by printing my base64 in to an image or a canvas and create a new MegaPixImage(myImgDomReference or myCanvasDomReference) but wont work.
I've also tried to convert my base64 image in to a blob and pass it to new MegaPixImage() constructor but noting.
Is there a solution you can suggest me?

@puzrin
Copy link

puzrin commented Nov 27, 2014

var img = new Image();
img.src = "data:image/png;base64,.............";

@dimanchee
Copy link

Anyone already found this solution?

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

3 participants