All Projects → willwashburn → Fasterimage

willwashburn / Fasterimage

Licence: mit
🐎 find the size of an image without downloading the whole file. Supports batch requests.

Projects that are alternatives of or similar to Fasterimage

Image Similarity
计算图片之间的相似度
Stars: ✭ 292 (+421.43%)
Mutual labels:  image, image-analysis
Menyoki
Screen{shot,cast} and perform ImageOps on the command line 🌱 🏞️
Stars: ✭ 255 (+355.36%)
Mutual labels:  image, image-analysis
Image Js
Image processing and manipulation in JavaScript
Stars: ✭ 241 (+330.36%)
Mutual labels:  image, image-analysis
Amazon Rekognition Video Analyzer
A working prototype for capturing frames off of a live MJPEG video stream, identifying objects in near real-time using deep learning, and triggering actions based on an objects watch list.
Stars: ✭ 309 (+451.79%)
Mutual labels:  image, image-analysis
Vue Picture Cut
Image clipping tool based on Vue and Typescript. Feature:Scale, flip, rotate, edge check, rectangle clip, ellipse clip. 基于vue和typescript的图片剪裁工具。功能:缩放、翻折、旋转、边缘校验、矩形剪裁、任意(椭)圆剪裁
Stars: ✭ 49 (-12.5%)
Mutual labels:  image
Openimager
Image processing Toolkit in R
Stars: ✭ 45 (-19.64%)
Mutual labels:  image
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-19.64%)
Mutual labels:  image
Imatcher
Image comparison library
Stars: ✭ 44 (-21.43%)
Mutual labels:  image-analysis
Videojs Record
video.js plugin for recording audio/video/image files
Stars: ✭ 1,074 (+1817.86%)
Mutual labels:  image
Image Optimizer
Simple lossless compression for Elementary OS
Stars: ✭ 52 (-7.14%)
Mutual labels:  image
Imagine Svg
Contao Imagine SVG Library
Stars: ✭ 48 (-14.29%)
Mutual labels:  image
Sizeslidebutton
A fun Swift UIControl for picking a size
Stars: ✭ 46 (-17.86%)
Mutual labels:  size
Imgviewer
jQuery plugin to zoom and pan images, even those with a size that is a percentage of their container
Stars: ✭ 50 (-10.71%)
Mutual labels:  image
Derpibooru Downloader
Downloads images from derpibooru.org using a variety of options
Stars: ✭ 45 (-19.64%)
Mutual labels:  image
Imageviewer.swift
An easy to use Image Viewer that is inspired by Facebook
Stars: ✭ 1,071 (+1812.5%)
Mutual labels:  image
Extended image
A powerful official extension library of image, which support placeholder(loading)/ failed state, cache network, zoom pan image, photo view, slide out page, editor(crop,rotate,flip), paint custom etc.
Stars: ✭ 1,021 (+1723.21%)
Mutual labels:  image
Jsoupsample
jsoupSample
Stars: ✭ 48 (-14.29%)
Mutual labels:  image
Asciipy
translate images, videos and text to Ascii arts easy
Stars: ✭ 52 (-7.14%)
Mutual labels:  image
Fuzzydetection
图片择优(选择最清楚的图片) 没有使用第三方库
Stars: ✭ 48 (-14.29%)
Mutual labels:  image
Duckduckgo Images Api
DuckDuckGo Image Search Resuts - Programatically download Image Search Results
Stars: ✭ 48 (-14.29%)
Mutual labels:  image

FasterImage CircleCI Coveralls Minimum PHP Version Packagist Version Packagist Downloads License

FasterImage finds the dimensions or filetype of a remote image file given its uri by fetching as little as needed, based on the excellent Ruby implementation by Stephen Sykes and PHP implementation by Tom Moor.

FasterImage uses the curl_muli* suite to run requests in parallel. Currently supports JPG, GIF, PNG, WEBP, BMP, PSD, TIFF, SVG, and ICO files.

Usage

        $client = new \FasterImage\FasterImage();
        
        $images = $client->batch([
            'http://wwww.example.com/image1.jpg',
            'http://wwww.example.com/image2.gif',
            'http://wwww.example.com/image3.png',
            'http://wwww.example.com/image4.bmp',
            'http://wwww.example.com/image5.tiff',
            'http://wwww.example.com/image6.psd',
            'http://wwww.example.com/image7.webp',
            'http://wwww.example.com/image8.ico',
            'http://wwww.example.com/image9.cur',
            'http://wwww.example.com/image10.svg'
        ]);
        
        foreach ($images as $image) {
            list($width,$height) = $image['size'];
        }

Install

composer require fasterimage/fasterimage

Alternatively, add "fasterimage/fasterimage": "~1.5" to your composer.json

Changelog

  • v1.5.0 - Fallback support when curl_multi_init() is not available
  • v1.4.0 - Add support for parsing dimensions from SVG images
  • v1.3.0 - Add ability for user agent, buffer size, and SSL host/peer verification to be overridden
  • v1.2.1 - Limit isRotated to only check for valid orientation values
  • v1.2.0 - Add option to include content-length in result set
  • v1.1.2 - Update Accept header to accept images
  • v1.1.1 - Properly handle jpeg's with corrupted Exif tags
  • v1.1.0 - Return message in return array when curl fails
  • v1.0.3 - Use external stream package
  • v1.0.2 - Fail invalid image exceptions gracefully when using batch requests
  • v1.0.1 - Support PHP v5.4+
  • v1.0.0 - Stable Release - Support for .PSD, .ICO + .CUR
  • v0.0.7 - Remove support for PHP v5.4
  • v0.0.6 - Add option to set timeout of requests, support for EXIF in .jpgs, better support for .bmp (including negative height bitmaps) and normalized response indexes for all file types
  • v0.0.5 - Support for .webp
  • v0.0.4 - Support for .tiff and exceptions for unknown file types
  • v0.0.3 - Force curl to follow redirects so you get less bad responses
  • v0.0.2 - Update curl headers to mimic browser so you get less bad responses
  • v0.0.1 - Support for .jpg, .bmp, .gif, .png and parallel requests

References

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].