Skip to content

deepfryed/identify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Identify

A pure ruby image identification library.

Install

gem install identify

Supported Formats

BMP, PNG, JPG, GIF, XPM, PPM, PGM, PNM, PBM, XBM, TIFF

Example

require 'identify'

p Identify.image File.binread("test/images/test.png", 1024)

Output

{:width=>253, :height=>178, :format=>"png"}

Testing

Tests require a local installation of ImageMagick and identify to be in your $PATH

TODO

Channel type, Depth, Colorspace and Resolution.

See Also

http://rubygems.org/gems/imagesize

License

MIT

About

ruby library to identify image format and dimension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages