Giter Site home page Giter Site logo

mybb-image-upload-resize's Introduction

Image Upload Resize v0.2

'Image Upload Resize' is a plugin for MyBB 1.8.18 that will resize members uploaded images on the fly.

this is an Alpha release and is not intended for live sites yet so use at your own risk.

I will be creating a post on the MyBB community forum in the plugin dev forum

https://community.mybb.com/thread-219642.html

Thanks

Change log:

v0.2

-cleaned up code

-added ability to set compression

mybb-image-upload-resize's People

Contributors

coolmoon1 avatar

Watchers

 avatar

Forkers

globaldevphp

mybb-image-upload-resize's Issues

compression_setting mistake

The value of the compression quality is not correctly transmitted in inc\plugins\iur.php:
Now code:

$jpg_compression = $mybb->settings['iur_jpg_compression_setting'];

//use generate_resize from functions_resize_image.php to resize and overwrite .attach image
$upload = generate_resize($upload_path."/".$attacharray[attachname],$upload_path."/".$resize_path[0],$resize_path[1], $resize_width, $resize_height, $quality);
======================

Work code for my:

$jpg_compression = $mybb->settings['iur_quality_setting'];

//use generate_resize from functions_resize_image.php to resize and overwrite .attach image
$upload = generate_resize($upload_path."/".$attacharray[attachname],$upload_path."/".$resize_path[0],$resize_path[1], $resize_width, $resize_height, $jpg_compression); //get new file size and update $attacharray and return
======================

Chenged
iur_jpg_compression_setting -> iur_quality_setting
$quality -> $jpg_compression

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.