Looks like you do not have enough memory to perform a large size upload
jpeg-js uses inadequate amount of memory for image processing,
- possible solution could be to resize picture (imagemagick/whatever)