Open M4tthewDE opened 1 year ago
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.
govips can use FailOnError to work around this, I've added a PoC here: https://github.com/davidbyttow/govips/issues/348#issuecomment-2002773634 here.
govips
FailOnError
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.