Skip to content

libnetpbm library as Swift package. libnetpbm is a C programming library for reading, writing, and manipulating Netpbm images.

License

Notifications You must be signed in to change notification settings

valeriyvan/swift-netpbm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swift-netpbm

This Swift package vends C libnetpbm library for image manipulation as libnetpbm product. While the libnetpbm from the package is fully functional, it is not recommended for direct use in Swift due to compatibility issues. The original libnetpbm library is written in a way that does not integrate well with Swift. If there is an error while parsing an image file or during input-output operations, the library may call exit or use longjmp, depending on its initialization. An exit call will cause the app to terminate abruptly, resembling a crash. Utilizing longjmp in Swift results in undefined behavior.

Porting C libnetpbm into Swift is work in progress and not yet ready to be used.

Reference to original Netpbm homepage.

Netpbm in Wikipedia.

Introduction into libnetpbm.

Libnetpbm User's Guide which covers PAM functions recommended to be used.

References for legacy interfaces:

About

libnetpbm library as Swift package. libnetpbm is a C programming library for reading, writing, and manipulating Netpbm images.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published