Shard Detail

fastimage v0.2.1

A Crystal implementation of fastimage – library that finds the dimensions and type of an image fetching as little as needed
image-processing fastimage

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development


fastimage:
  github: jetrockets/fastimage.cr
  version: 0.2.1

Readme

fastimage.cr

Build Status GitHub release GitHub license

Library that finds the dimensions and type of an image fetching as little as needed.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      fastimage:
        github:jetrockets/fastimage.cr
    
  2. Run shards install

Usage

require "fastimage"

FastImage.type("https://file-examples.com/wp-content/uploads/2017/10/file_example_PNG_3MB.png") #png

FastImage.dimensions("https://file-examples.com/wp-content/uploads/2017/10/file_example_PNG_3MB.png") #[2200, 1467]

Feature Progress

  • Data sources
    • Remote file
      • HTTP/HTTPS
      • Proxy
      • HTTP redirects
    • Local file
    • IO
    • Base64
  • File formats
    • BMP
    • CUR
    • GIF
    • ICO
    • JPEG
      • parse EXIF information for JPEG orientation
    • PNG
    • PSD
    • SVG
    • TIFF
    • WEBP

Contributing

  1. Fork it (https://github.com/jetrockets/fastimage.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors