You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-16 11:53:58 +08:00
图表化来临
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once __DIR__ . './../libs/function.php';
|
||||
require_once APP_ROOT . '/api/libs/apiFunction.php';
|
||||
require_once APP_ROOT . '/libs/class.upload.php';
|
||||
require_once APP_ROOT . '/libs/WaterMask.php';
|
||||
require_once __DIR__ . './../application/function.php';
|
||||
require_once APP_ROOT . '/api/application/apiFunction.php';
|
||||
require_once APP_ROOT . '/application/class.upload.php';
|
||||
require_once APP_ROOT . '/application/WaterMask.php';
|
||||
require_once APP_ROOT . '/config/api_key.php';
|
||||
|
||||
// 检查是否开启api上传
|
||||
@@ -109,7 +109,7 @@ if ($handle->uploaded) {
|
||||
// 压缩图片 后压缩模式,不影响前台输出速度
|
||||
if (!isAnimatedGif($handle->file_dst_pathname))
|
||||
if ($config['compress']) {
|
||||
require '../libs/compress/Imagick/class.Imgcompress.php';
|
||||
require '../application/compress/Imagick/class.Imgcompress.php';
|
||||
$img = new Imgcompress($handle->file_dst_pathname, 1);
|
||||
$img->compressImg($handle->file_dst_pathname);
|
||||
// 释放
|
||||
|
||||
Reference in New Issue
Block a user