Skip to content

tomlea/image_validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageValidator

A simple image file validator using the identify command line app.

Checks to see if an image is valid.

Uage

  ImageValidator.valid?(file)

file can be an IO, a filename or image data in a string. Returns true if the image exists.

  ImageValidator.valid?("missing_image.png") # => false
  ImageValidator.valid?("") # => false
  ImageValidator.valid?(File.open("an_image_file.png")) # => true
  # etc…

About

A simple wrapper around the ImageMagick command line to check if an image is valid."

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages