Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.
/ rs-imagesize Public archive

A port of imagesize to Rust, mostly for learning and fun

License

Notifications You must be signed in to change notification settings

Princesseuh/rs-imagesize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rs-imagesize

Note Looking for a real library to do this? Checkout https://github.com/Roughsketch/imagesize

An incomplete port of image-size to Rust. Mostly for fun and learning Rust.

Usage

use rs_imagesize::get_image_metadata;

fn main() {
		let metadata = get_image_metadata("path/to/image").unwrap();
		println!("Format: {}. Dimensions: {}x{}", metadata.format, metadata.width, metadata.height);
}

Supported formats

  • PNG
  • JPEG
  • GIF
  • BMP
  • TIFF
  • PSD
  • WebP
  • SVG
  • ICO
  • CUR
  • DDS
  • AVIF

About

A port of imagesize to Rust, mostly for learning and fun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages