TIL setjmp/longjmp are undefined behaviors in Swift
setjmp/longjmp are undefined behaviors in Swift and cannot be used with ARC Objective-C either.
Read Netpbm Programming Library Errors. libnetpbm or just exists app in case of any error (io error or broken file) or uses longjpm as alternative.
These two make libnetpbm unusable with Swift. The only way to use libnetpbm in Swift - port it into Swift.