It is unable to upload some kind of jpeg files (e.g. created by Meizu phone, see attached): "It was not possible to determine the dimensions of the image. Please verify that the URL you entered is correct." error message appears.
It was experimentally discovered that increasing JPEG_MAX_HEADER_SIZE value in TypeJpeg.php file helps to resolve this issue.