承接 vajiral/php-image-compare 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

vajiral/php-image-compare

最新稳定版本:1.0.1

Composer 安装命令:

composer require vajiral/php-image-compare

包简介

A light weight PHP class that can compare two (jpg/png) images to find if they are similar.

README 文档

README

A light weight PHP class that can compare two (jpg/png) images to find if they are similar.

Supported files: "png","jpg".

Usage:

Install via composer

"vajiral/php-image-compare": "1.0.1"

In your PHP file

<?php

use BigV\ImageCompare;

require __DIR__ . "/../vendor/autoload.php";

/**
 * These two images are almost the same so the hammered distance will be less than 10
 * Try it with images like below:
 * 1. Two slightly different images
 * 2. Two completely different images
 * 3. Two same images (returned value 0)
 * 4. Two same image but with different size/aspect ratio (returned value ~0)
 */

$image = new ImageCompare();
echo $image->compare(__DIR__ . '/image2-resize.jpg',__DIR__ . '/image2.jpg');

?>

Originally taken from https://www.phpclasses.org/package/8255-PHP-Compare-two-images-to-find-if-they-are-similar.html and name-spaced and added to Composer

统计信息

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

GitHub 信息

  • Stars: 17
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-04