lfphp/limg 问题修复 & 功能扩展

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

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

lfphp/limg

最新稳定版本:0.0.7

Composer 安装命令:

composer require lfphp/limg

包简介

README 文档

README

The current library is based on PHP CURL extension and tested in PHP7.3 or above environment. In view of ethical standards, please do not use this library to illegally obtain network resources without permission.

Install

  1. PHP version is greater than or equal to 7.3
  2. Extensions must be installed: gd

Please use Composer to install:

composer require lfphp/limg

Usage

1. CURL method to obtain content

<?php
$img = __DIR__.'/a.jpg';
$new_img = __DIR__.'/b.png';
Limg::fromImg($img)
	->fixOrientate()
	->getInfo($origin_info)
	->resize(800, 400, 'cover')
	->changeFormat('png')
	->addRepeatTextWatermark('hell world')
	->getInfo($target_info)
	->saveAs($new_img);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-02-08