api icon indicating copy to clipboard operation
api copied to clipboard

No previews for images uploaded from certain Samsung phones

Open M4tthewDE opened this issue 1 year ago • 1 comments

Certain Samsung phones produce invalid JPEG files, which causes libvips to throw an error. Example image: https://kappa.lol/ZEhuj

Newer versions of libvips seem to work around this issue, see https://github.com/lovell/sharp/issues/1578 for more information. Govips does not support this workaround as of yet, and returns an error as can be seen in https://github.com/davidbyttow/govips/issues/348.

We should update govips as soon as there is a fix available to support these images.

M4tthewDE avatar Nov 19 '23 14:11 M4tthewDE

govips can use FailOnError to work around this, I've added a PoC here: https://github.com/davidbyttow/govips/issues/348#issuecomment-2002773634 here.

n0vad3v avatar Mar 18 '24 02:03 n0vad3v