Clear all

Did we help you in something? If so, we would very much appreciate if you Share our website or forums link. Thank you!

Osclass: Pre-resize Images Free Plugin  

Alessandro Cagliostro
Estimable Member

Osclass installations on modest hostings tend to provoke problems with PHP memory limit when the users try to upload images with big resolution (like those produced by modern phone devices). In most cases final images on your site won't have more than 640x480 pixels, so normally you have no real need to handle (and maybe permanently store in your server) such big images. This plugin will resize them to a much more manageable resolution on the client side, before they are sent to your server.

This way, to the user uploads are much faster, and to you as admin, it will save a lot of bandwidth and processing power.

By default the plugin sets the maximum resolution for pre-resizing to twice the max value set for "Normal size" in Admin Dashboard / Settings / Media (640x480 by default, so for pre-resizing it would be 1280). Until version 2.0.0 at this resolution some artifacts might be noticed in specififc circumnstances. Now thanks to the introduction of Pica library for better resizing, 1280 is more than enough unless you have special needs and wanted to show really big images to your users.

This plugin should be compatible with any theme that includes Ajax Uploader for images ("Click or drop for upload images").

Note: For this plugin to work, user browser must be fully HTML5 compliant. Old browsers such as IE9 and older will use the normal Ajax upload mechanism with no pre-resizing.

You'll need to slightly modify your theme, install the plugin and click on Configure (or Plugins / Pre-resize Images / Settings & Help) to change maximum resolution and see instructions.

Note: Currently this plugin replaces Fine Uploader module v. 3.8.0 bundled with Osclass with the latest v. 5.11.10, under MIT license.


This topic was modified 1 week ago by Editor
Posted : April 3, 2017 10:08
Alessandro Cagliostro
Estimable Member

Updated Version 2.3.1 attached here. (released  22 / 09 / 2018)


Posted : October 24, 2018 18:07