All Projects → stephenmoloney → fastimage

stephenmoloney / fastimage

Licence: MIT license
Find the type or size of an image

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to fastimage

Image Size
Node module for detecting image dimensions
Stars: ✭ 1,539 (+4864.52%)
Mutual labels:  dimensions, image-analysis
SyConn
Toolkit for the generation and analysis of volume eletron microscopy based synaptic connectomes of brain tissue.
Stars: ✭ 31 (+0%)
Mutual labels:  image-analysis
dimensions-api-lab
Research data analytics tutorials using the Dimensions Analytics API
Stars: ✭ 68 (+119.35%)
Mutual labels:  dimensions
image space
Interactive Image similarity and Visual Search and Retrieval application
Stars: ✭ 91 (+193.55%)
Mutual labels:  image-analysis
SmartImage
Reverse image search tool (SauceNao, ImgOps, trace.moe, and more)
Stars: ✭ 346 (+1016.13%)
Mutual labels:  image-analysis
MorphoLibJ
Collection of mathematical morphology methods and plugins for ImageJ
Stars: ✭ 84 (+170.97%)
Mutual labels:  image-analysis
react-native-dimension
A React Native Dimension for Responsive Layout
Stars: ✭ 31 (+0%)
Mutual labels:  dimensions
QuadTreeAndroid
Library that helps to implement the QuadTree in android, by using splitting images
Stars: ✭ 30 (-3.23%)
Mutual labels:  image-analysis
BusterNet
No description or website provided.
Stars: ✭ 49 (+58.06%)
Mutual labels:  image-analysis
Quantitative-Big-Imaging-2018
(Latest semester at https://github.com/kmader/Quantitative-Big-Imaging-2019) The material for the Quantitative Big Imaging course at ETHZ for the Spring Semester 2018
Stars: ✭ 50 (+61.29%)
Mutual labels:  image-analysis
F9-Corner-Detection-Library
A faster re-implementation of the FAST-9 algorithm (C++, with C bindings available)
Stars: ✭ 14 (-54.84%)
Mutual labels:  image-analysis
Plant-Disease-Identification-using-CNN
Plant Disease Identification Using Convulutional Neural Network
Stars: ✭ 89 (+187.1%)
Mutual labels:  image-analysis
computer-vision-notebooks
👁️ An authorial set of fundamental Python recipes on Computer Vision and Digital Image Processing.
Stars: ✭ 89 (+187.1%)
Mutual labels:  image-analysis
miplib
A Python software library with a variety of functions for (optical) microscopy image restoration, reconstruction and analysis.
Stars: ✭ 54 (+74.19%)
Mutual labels:  image-analysis
ImageM
GUI for Image processing with Matlab
Stars: ✭ 25 (-19.35%)
Mutual labels:  image-analysis
term size-rs
Functions for determining terminal sizes in Rust
Stars: ✭ 41 (+32.26%)
Mutual labels:  dimensions
morton-nd
A header-only compile-time Morton encoding / decoding library for N dimensions.
Stars: ✭ 78 (+151.61%)
Mutual labels:  dimensions
Python Computer Vision from Scratch
This repository explores the variety of techniques commonly used to analyze and interpret images. It also describes challenging real-world applications where vision is being successfully used, both for specialized applications such as medical imaging, and for fun, consumer-level tasks such as image editing and stitching, which students can apply…
Stars: ✭ 219 (+606.45%)
Mutual labels:  image-analysis
ggimg
ggimg: Graphics Layers for Plotting Image Data with ggplot2
Stars: ✭ 51 (+64.52%)
Mutual labels:  image-analysis
Slicer-DeepInfer
3D Slicer Module for connecting to model repository and use models for image analysis.
Stars: ✭ 23 (-25.81%)
Mutual labels:  image-analysis

Hex Version Hex docs License Build Status Code coverage status Hex.pm

Fastimage

Description

Fastimage finds the dimensions/size or file type of a remote or local image file given the file path or url respectively. It streams the smallest amount of data necessary to ascertain the file size. This aspect is useful when getting the file size for very large images.

Features

  • Supports bmp, jpeg, png, webp and gif files
  • Supports local files by using the file path of the image
  • Supports blobs/objects by using the binary of the image
  • Supports remote files by using the url of the image
  • Follows redirects for a given url
  • Fastimage.info/1 yields the image info as a struct %Fastimage{}
  • Fastimage.size/1 yields the image size as a struct %Fastimage.Dimensions{width: _w, height: _h}
  • Fastimage.type/1 yields the image type as an atom :bmp, :jpeg, :gif, :webp or :png

Examples

Fastimage.info("https://raw.githubusercontent.com/stephenmoloney/fastimage/master/priv/test.jpg")
# => {:ok,
#      %Fastimage{
#        dimensions: %Fastimage.Dimensions{height: 142, width: 283},
#        image_type: :jpeg,
#        source: "https://raw.githubusercontent.com/stephenmoloney/fastimage/master/priv/test.jpg",
#        source_type: :url
#      }}

Fastimage.type("https://raw.githubusercontent.com/stephenmoloney/fastimage/master/priv/test.jpg")
# => {:ok, :jpeg}

Fastimage.size("https://raw.githubusercontent.com/stephenmoloney/fastimage/master/priv/test.jpg")
# => {:ok, %Fastimage.Dimensions{height: 142, width: 283}}

See docs for further examples

Installation

Add fastimage to your list of dependencies in mix.exs:

def deps do
  [
    {:fastimage, "~> 1.0.0-rc4"}
  ]
end

Tests

mix test

Benchmarks

mix bench

Credit/Acknowledgements

Licence

MIT Licence

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].