farmani/remote-image-info 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

farmani/remote-image-info

最新稳定版本:v0.1.2

Composer 安装命令:

composer require farmani/remote-image-info

包简介

get image information without downloading whole file

README 文档

README

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

Usage

<?php 
		
require 'RemoteImageInfo.php';
		
$uri = "http://farm9.staticflickr.com/8151/7357346052_54b8944f23_b.jpg";
		
// loading image into constructor
$image = new RemoteImageInfo($uri);
if($image->checkLoad()) {
    list($width, $height) = $image->getSize();
    echo "dimensions: " . $width . "x" . $height;
}


// or, create an instance and use the 'load' method
$image = new RemoteImageInfo();
$image->load($uri);
if($image->checkLoad()) {
    $type = $image->getType();
    echo "filetype: " . $type;
}

References

License

RemoteImageInfo is released under the MIT license. It is simple and easy to understand and places almost no restrictions on what you can do with the software. More Information

Download

Releases are available for download from GitHub.

统计信息

  • 总下载量: 6.21k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固