Unable to crop white image area
Opened this issue · 6 comments
I was trying to crop image with white area with no colored pixels. it shows an error in Console tab of Inspect element.
ui-cropper.js:3626 Uncaught TypeError: Cannot read property '0' of null
at ColorThief.getColor (ui-cropper.js:3626)
at Image.imageDC.onload (ui-cropper.js:2982)
while I drag selection to extend or reduce cropping area it throws an error in console section.
please provide the png or jpg file and codepen you tryed.
Tryed codepen from Live demo section (Codepen: Rectangle Crop : https://codepen.io/Crackeraki/pen/XmEdPx )
Here you find file Test_File.png
which i uploaded and output_file.PNG
which is resultant screenshot.
Is there any updates about raised point?
any update on this? facing the same issue
@tgs-vaibhav, Please review this
I have changes condition for RGB color range 250 to 256 then resolved same.
let me know if you have any confusion in this.
Thank you
@Jignesh66 Cool!, Thanks. It is working now