icret / easyimages Goto Github PK
View Code? Open in Web Editor NEW此版本不再维护,已出新版:速度更快,压缩更小:
Home Page: https://github.com/icret/EasyImages2.0
License: GNU Lesser General Public License v3.0
此版本不再维护,已出新版:速度更快,压缩更小:
Home Page: https://github.com/icret/EasyImages2.0
License: GNU Lesser General Public License v3.0
一直放在本地会拖慢网速,不知道能不能开发一个可以上传到七牛云的选项,Thanks
手动修改文件内的配置参数后访问设置页面发现压缩等参数配置与修改不符合,尝试在网页提交修改无用。
上传图片检查发现,图片未被压缩,HASH值完全一致。
关于CDN的配置选项不知道又有啥用处。
环境:Linux PHP 7.1.19
我的配置哦文件:
$config = array (
// 主要设置
'domain' => 'https://DOMAIN/', // 域名 需要完全书写http?s://domain/
'cdn_domain' => 'https://CDN/',
'maxSize' => 2097152, // 上传文件大小的最大值 默认2M 最大请参考php.ini修改 同时需要修改前端js
'filePath' => 'images/', // 图片存储文件夹 末尾需加 '/'
'png_zip' => 9, // png 图像质量 介于1(快速但大文件)和9(慢速但较小的文件)之间 ,空为不压缩
'jpeg_zip' => 90, // jpeg图像质量 介于1-100 数值越大质量越高 默认85
'watermark' => 0, // 是否开启水印 0关闭,1文字水印,2图片水印 动态gif不能添加水印
'waterPosition' => 'TB', // 水印位置 一个或两个的组合:T=top,B =bottom,L=left,R=right
'imgConvert' => '', // 是否转换图片为指定格式:('png'|'jpeg'|'gif'|'bmp'|'')空则不转换
'mustLogin' => false, // * 仅允许登录后上传 开启true 关闭false
'crossDomain' => false, // * 是否开启异地上传 开启true 关闭false
'CDomains' => [ // * 异地上传的域名列表 如果只有一个,则默认只使用这个一个。
'https://img.545141.com/crossdomain/file.php', // * 异地上传的域名列表如果有多个,请按照格式书写,会随机调用。最后一个不要加','
'https://img.545141.com/api.php'
],
'crossDelHash' => md5(date("dH")+9), // * 远程删除的Hash认证,请与远程保持一致!如果自行搭建请修改hash
'apiStatus' => false, // 是否开启api 开启true 关闭false
'apiWater' => true, // 是否开启api自定义水印 开启true 关闭false
// 文字水印设置
'waterText' => '简单图床', // 指定文字水印 [
'textDirection' => 'h', // 文字方向 水平'h' 垂直'v'
'textPadding' => 10, // 边距 px
'textColor' => '#FF0000', // 字体颜色 16色
'textOpacity' => 100, // 字体透明度 0-100
'textFont' => APP.'/static/imitationSong.ttf',// 字体路径相对路径
'fontSize' => 23, // 字体大小
'text_bg_set' => false, // 是否设置水印背景色 设置true 不设置false
'text_water_bg' => '#DCDCDC', // 背景色 背景大小与边距textPadding有关 空则不显示背景颜色 16色
'text_bg_opa' => 50, // 背景色透明度 0-100 ]
// 图片水印设置
'waterImg' => APP.'/static/watermark.png', // 图片水印路径 支持GIF,JPG,BMP,PNG和PNG alpha
// 压缩图片
'image_resize' => false, // 是否调整图片大小 开启true 关闭false
'image_ratio' => false, // 是否等比调整图片 开启true 关闭false
'image_x' => 750, // 调整后的图片宽度
'image_y' => 450, // 调整后的图片高度
'image_min_w' => 1, // 上传图片的最小宽度 空为不限制''
'image_min_h' => 1, // 上传图片的最小高度 空为不限制''
// 其他设置
'password' => 7576', // 默认密码7576
'static_cdn' => true, // 开启CDN 开启true 关闭false
'showSwitch' => true, // * 图片展示开关 开启true 关闭false
'showNumber' => 30, // * 展示随机最近图片数量
'ad_top' => false, // * 开启顶部广告
'ad_bot' => false, // * 开启底部广告
'language' => 'zh_CN', // 显示语言 中文繁体 'zh_TW' 美国英语 'en_US'默认为中文简体'zh_CN'
'Version' => '1.6.4' // 当前版本 numb.*.* 重大改动 *.numb.* 重要改动 *.*.numb 轻微改动
);
批量一次只可以10张太少i了,在哪里可以调这个数量呢?
Warning: Cannot modify header information - headers already sent by (output started at /home/hubeiren/public_html/imgurl/lib/header.php:47) in /home/hubeiren/public_html/imgurl/lib/func.php on line 38
b2 backblaze存储配合cloudflare配合这个就666了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.