You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i am getting the below issue when trying extract colors from image
below is line of code causing the issue:
let file = e.target.files[0];
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = (e: any) => {
setImage(e.target.result);
};
const palette = Palette.extract(image); /* this line is causing the issue */
Note: Using NextjJS 14.1.2
Thank you in advance
The text was updated successfully, but these errors were encountered:
Hi, i am getting the below issue when trying extract colors from image
below is line of code causing the issue:
let file = e.target.files[0];
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = (e: any) => {
setImage(e.target.result);
};
const palette = Palette.extract(image); /* this line is causing the issue */
Note: Using NextjJS 14.1.2
Thank you in advance
You should be able to convert it by first creating an html img element with the image url as the src.
Hi, i am getting the below issue when trying extract colors from image
below is line of code causing the issue:
Note: Using NextjJS 14.1.2
Thank you in advance
The text was updated successfully, but these errors were encountered: