strukturag / libheif

libheif is an HEIF and AVIF file format decoder and encoder.
Other
1.68k stars 296 forks source link

Command failed issue in some scenarios #512

Open anjn98 opened 3 years ago

anjn98 commented 3 years ago

Sometimes while performing the heif command on linux , i get this error Although the same command runs successfully most of times. can you please help

Command failed: heif-convert -q 100 101493.heic 274790.jpg Could not read HEIF/AVIF file: Invalid input: Unexpected end of file: Extent in iloc box references data outside of file bounds (points to file position 542)

farindk commented 3 years ago

Can you attach the file here so that I can try to reproduce it?

anjn98 commented 3 years ago

Actually i am creating an api which will convert any heic image to jpg format. The api works fine when called a few times(~1 call per second). However when i am doing load test(making around ~5 calls per second), the log shows me the above error.Here is a sample image where the above error occurs. It most probably wont occur when you hit it singularly.

https://nokiatech.github.io/heif/content/images/autumn_1440x960.heic