You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-16 11:53:58 +08:00
2.7.0 dev
* 2023-01-26 v2.7.0 dev - 增加广场非图片图标 - 替换访问生成缩略图代码 - 更新一些组件 - 优化代码
This commit is contained in:
@@ -9,7 +9,7 @@ function compress($absolutePath)
|
||||
global $config;
|
||||
// 压缩图片 后压缩模式,不影响前台输出速度
|
||||
if ($config['compress']) {
|
||||
if (!isAnimatedGif($absolutePath)) {
|
||||
if (!is_Gif_Webp_Animated($absolutePath)) {
|
||||
require_once __DIR__ . '/compress/Imagick/class.Imgcompress.php';
|
||||
$percent = $config['compress_ratio'] / 100; // 压缩率
|
||||
$img = new Imgcompress($absolutePath, $percent);
|
||||
@@ -29,7 +29,7 @@ function water($source)
|
||||
// 文字水印
|
||||
if ($config['watermark'] == 1) {
|
||||
// 过滤gif
|
||||
if (!isAnimatedGifWebp($source)) {
|
||||
if (!is_Gif_Webp_Animated($source)) {
|
||||
$arr = [
|
||||
# 水印图片路径(如果不存在将会被当成是字符串水印)
|
||||
'res' => $config['waterText'],
|
||||
@@ -48,7 +48,7 @@ function water($source)
|
||||
// 图片水印
|
||||
if ($config['watermark'] == 2) {
|
||||
// 过滤gif
|
||||
if (!isAnimatedGifWebp($source)) {
|
||||
if (!is_Gif_Webp_Animated($source)) {
|
||||
$arr = [
|
||||
# 水印图片路径(如果不存在将会被当成是字符串水印)
|
||||
'res' => APP_ROOT . $config['waterImg'],
|
||||
|
||||
Reference in New Issue
Block a user