Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Decoding support for additional image formats

License

NotificationsYou must be signed in to change notification settings

RunDevelopment/image-extras

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Support for additional image formats beyond those provided by theimage crate.

Usage

Call theregister function at program startup:

fnmain(){    image_extras::register();// Now you can use the image crate as normallet img = image::open("path/to/image.pcx").unwrap();}

By default, all supported formats are enabled. For finer control, enableindividual formats via Cargo features:

[dependencies]image_extras = {version ="0.1",features = ["pcx"],default-features =false }

Supported Formats

FeatureFormat
oraOpenRaster[spec]
otbOTA Bitmap (Over The Air Bitmap)[spec]
pcxPCX (ZSoft Paintbrush bitmap/PiCture eXchange)[desc]
sgiSGI (Silicon Graphics Image)[spec]
wbmpWireless Bitmap[spec]
xbmX BitMap[spec]
xpmX PixMap[spec]

By default,image-extras enables support for all included formats. This isconvenient for prototyping, but for other uses you are encouraged to evaluatethe individual implementations and enable only the ones that meet yourquality/robustness requirements.

New Formats

We welcome PRs to add support for additional image formats.

Required criteria

  • Must be one of the raster image formatsrecognized by ImageMagick.
  • No patent or licensing restrictions.
  • Specification or sufficiently detailed file format description freely available online.
  • Must include multiple test images, and their source/license should be mentioned in the PR description.
  • Implementation must be entirely in Rust.

Additional nice-to-haves

  • Minimal or no dependencies on external libraries.
  • No use of unsafe code.

Version Compatibility

image crate versionCompatibleimage-extras versions
0.25.x0.1.x

Fuzzing

Fuzzing is not a priority for this crate and decoders may panic or worse onmalformed input. Please do not open issues for crashes found by fuzzing,unless they are memory safety violations, though PRs fixing them are welcome.

This is an intentional tradeoff to balance the inclusion criteria for newformats with maintainer time and effort.

About

Decoding support for additional image formats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust100.0%

[8]ページ先頭

©2009-2025 Movatter.jp