Closed raefa closed 9 years ago
Your suggestion?
Hmmm. Maybe we put a more descriptive error message in there. "getJpegSize could not find the size of the image. This may be because the headers of the JPEG have been removed or the image cannot be found." I can't think of anything better really!
Thanks. I have changed the text
It took me a while to figure this out! Image Optim (https://imageoptim.com/) must strip out the headers and jsPDF must rely on the headers to get the dimensions of the file. Should probably fail a little more gracefully than this: