Giter Site home page Giter Site logo

icret / easyimages Goto Github PK

View Code? Open in Web Editor NEW
83.0 83.0 23.0 14.76 MB

此版本不再维护,已出新版:速度更快,压缩更小:

Home Page: https://github.com/icret/EasyImages2.0

License: GNU Lesser General Public License v3.0

PHP 97.34% CSS 2.55% HTML 0.06% JavaScript 0.05%
api easyimage gun php verot zui

easyimages's People

Contributors

icret avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

easyimages's Issues

BUG?配置调整无效,压缩无效。

手动修改文件内的配置参数后访问设置页面发现压缩等参数配置与修改不符合,尝试在网页提交修改无用。
上传图片检查发现,图片未被压缩,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 轻微改动
    );

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.