bergben/ng2-img-tools

The provided File is neither of type jpg nor of type png.

Closed this issue · 1 comments

I am trying to resize an image by creating a File from a base64 jpg.
When I call the resize method on the ng2ImgToolsService throws an error.

Can you give me a clue please?

Hi @fpl1976,
how are you creating the file?
Make sure to set the MIME type or alternatively that the filename ends with .jpg then it should work.