Hello all,

I have this in my code:

print("try to scan image")
local image_info = img.scan{filename = filename}
print("scanned image")

When I have a bad jpeg file (for example a file containing just a few ascii 
characters), I get this output:


try to scan image
! error:  (readjpg): no header found
!  ==> Fatal error occurred, no output PDF file produced!exit status 1


Is there a way to catch this error without stopping the PDF generation?


Thank you
  Patrick


_______________________________________________
dev-luatex mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to