图片自动缩放 autoCropImage

码农软件 · 软件分类 · 图形/图像处理 · 2019-09-07 07:58:02

软件介绍

将图片自动缩放成指定大小,减少图片体积,从而加快下载速度,降低下载时间和成本。

使用说明

URI 模式

  • http://localhost/images/pic.jpg_50x100.jpg

  • http://localhost/images/pic.jpg_50x100m2.jpg

  • http://localhost/images/pic.jpg_50x100v2014.jpg

  • http://localhost/images/pic.jpg_50x100m2v2014.jpg

QUERY 模式

  • http://localhost/images/pic.jpg?50x100

  • http://localhost/images/pic.jpg?50x100m2

  • http://localhost/images/pic.jpg?50x100v2014

  • http://localhost/images/pic.jpg?50x100m2v2014

使用说明

  • 方式一:50x100 缩放成 50x100 大小

  • 方式二:50x100m2 方式一并且使用mode 2

  • 方式三:50x100v2014 方式一并且指定缓存版本2014

  • 方式四:50x100m2v2014 方式一,使用mode 2并且指定缓存版本2014

缩放模式说明

  • mode 1 : 强制裁剪,生成图片严格按照需要,不足放大,超过裁剪,图片始终铺满。

  • mode 2 : 和1类似,但不足的时候 不放大 会产生补白,可以用png消除。

  • mode 3 : 只缩放,不裁剪,保留全部图片信息,会产生补白。

  • mode 4 : 只缩放,不裁剪,保留全部图片信息,此时的参数只是限制了生成的图片的最大宽高,不产生补白。

  • mode 5 : 生成的图比例严格按照需要的比例,宽和高不超过给定的参数。

服务器环境要求

PHP 5.2+

Apache mod_rewrite

本文地址:https://www.codercto.com/soft/d/14052.html

Java Message Service API Tutorial and Reference

Java Message Service API Tutorial and Reference

Hapner, Mark; Burridge, Rich; Sharma, Rahul / 2002-2 / $ 56.49

Java Message Service (JMS) represents a powerful solution for communicating between Java enterprise applications, software components, and legacy systems. In this authoritative tutorial and comprehens......一起来看看 《Java Message Service API Tutorial and Reference》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具