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 circumstances. 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.15.0, under MIT license.

 

Changelog:

Version: 2.2.1 (2017.09.18)

+ Solved image orientation issues when using ImageMagick on browsers not supporting pre-resizing.

+ Solved occasional image corruption in Chrome on Android.

+ Fixed flickering on Drag & Drop in Firefox.

 

Version: 2.2.0 (2017.09.04)

+ Upgrade to Fine Uploader 5.15.0

+ Fixed Image Orientation bug when multiple images are being selected.

+ Optimization of scripts loading.

+ Several bugs fixed.

 

Version: 2.1.0 (2017.01.21)

+ Fixed Drag & Drop images on Microsoft IE 11 / Edge (Thanks to developerchris :)

+ Restored "Make Primary Image" buttons (only on Publish Ad).

+ Fixed bug on Edit Ad when Decent Mobile Theme plugin is used.

 

Version: 2.0.1 (2016.12.23)

+ Fixed bug provoking output error on installing and other circumnstances

 

Version: 2.0.0 (2016.12.14)

+ Upgrade to Fine Uploader 5.11.10 (MIT license).

+ Much better resizing of images by using Pica library (MIT license).

+ Now images to be uploaded are fully sortable by dragging thumbnails.

+ Support for Decent Mobile Theme plugin.

+ Added languages folder for translation of plugin specific strings.

+ Fixed a bug affecting proper rotation of images including EXIF orientation.

- Discarded embedding of original EXIF information of the images.

 

Version: 1.1.2 (2016.06.13)

+ Embed original EXIF information of the images to avoid occasional validation problems on server side.

 

Version: 1.1.1 (2016.03.15)

+ Improved Make Primary Image layout.

+ Full translation of Ajax Uploader elements.

+ Fixed minor bugs

 

Version: 1.1.0 (2016.02.17)

+ Fine Uploader 5.0.9 (licensed under GNU GPL v3). Thanks a lot to dev101 for his support. :)

+ Added feature Change Primary Image (publishing page only).

+ Compatibility with Minifyer plugin.

+ Minor cosmetic change.

+ jQuery optimization

 

Version: 1.0.1 (2016.02.12)

+ Fixed several issues when user tries to upload more images than the allowed number.

+ Added support for some themes not using the standard Ajax Uploader mechanism.

+ Added a Plugins submenu for those having problems with Configure link.

+ Changed name of jquery.fine-uploader.min.js script to jquery.fineuploader.min.js

 

Version: 1.0 (2016.01.25)

+ Initial release

19 Reviews
Write a review

Amazing,
By Telemo, September 27, 2017
Very quick and easy to setup! Works as stated, can now upload images that were much larger in file size than server could handle.
[removed]
By Ehsan Khan, September 22, 2017
thanks for plugins
Yes its perfect work
By webhostpune, August 14, 2017
great plugin its reduce image size & google pagespeed increase.
thanks to developer. i am using here # [removed]
best plugin for image uploading problem
By sachin sharma, June 15, 2017
best work

Thanks developers
better that paid one
By Rasika Attanayake, April 01, 2017
better that paid one,very simple, i didnt change the codes coz i have osc [removed] it works ok

    developerchris9 months ago

    After installing version 2.0.1 I get an error in IE 11 "Promise is undefined" IE 11 support is m...
    After installing version 2.0.1 I get an error in IE 11 "Promise is undefined"

    IE 11 support is mandatory for me.

    Any Ideas on a solution?

    developerchris9 months ago

    Unfortunately IE 11 does not support promises which causes this plugin to fail. I was able to fi...
    Unfortunately IE 11 does not support promises which causes this plugin to fail.

    I was able to fix it simply by modifying line 185 in index.php

    From
    customResizer: !qq.ios() && function (resizeInfo) {
    To
    customResizer: !qq.ios() && !qq.ie() && function (resizeInfo) {

    A better alternative may be to add a third party promise library?

    Chris

    ramesh ...8 months ago

    hello .. this is working perfect on my desktop but when i try to upload a image from mobile whic...
    hello ..
    this is working perfect on my desktop but when i try to upload a image from mobile which is above 2MB .. it is saying that upload is fail
    kindly help me

    teseo AUTHOR8 months ago

    Hi,

    Please write in this thread of the forum:

    http://forums.osclass.org/plugins/(plugin)-pre-resize-images/

    Specify the version of the plugin you're using, and the mobile device model, OS and browser presenting the problem.

    Regards

    ramesh ...8 months ago

    Version:2.1.0 ,
    iphone 5s and i used redmi 3s mobile and same thing happened . safari browser and chrome

    teseo AUTHOR8 months ago

    I don't have an iPhone to investigate your issue, As said, write in the Osclass forum, maybe some other fellow could test it and give us more information:

    http://forums.osclass.org/plugins/(plugin)-pre-resize-images/

    Regards

    ugousek8 months ago

    Hello, when i want to upload images, it doesnt work and get an error about wrong format of the fi...
    Hello, when i want to upload images, it doesnt work and get an error about wrong format of the file, should be .jpg, .png of gif, but the file I'm attaching is .jpg. Iam running on version 3.3.2. I cant solve this problem for four days. I dont want to update my osclass, because i have edited some codes.

    teseo AUTHOR8 months ago

    Hi,

    So sorry, there was a mistake on minimum Osclass version, should be 3.5.0

    I'm afraid the plugin won't work for you

    Regards

    ugousek8 months ago

    Why it doenst work on my version? I need primary image select :( Do you now any solution ? Do you have an email ?

    Meier7 months ago

    Hello Can you give me an offer for the following addition: If a user captures an ad and uploads a...
    Hello
    Can you give me an offer for the following addition:
    If a user captures an ad and uploads a photo, then he should be able to rotate the photo in 90 degree increments. Also in the admin i should have this possibility. What would it cost?

    teseo AUTHOR7 months ago

    Hello,

    Sorry, rotation on demand is not possible with this plugin.

    Regards

    ROSSANA ...6 months ago

    Where do you change the text " Click or drop images"?
    Where do you change the text " Click or drop images"?

    teseo AUTHOR6 months ago

    Not in the plugin, see here:

    http://forums.osclass.org/3-6-x/how-to-change-the-phrase-'click-or-drop-for-upload-images'/

    Regards

    marius6 months ago

    Hello. Has, the problem with IPHONE, been solved? I couldn't find anything about that in forum ( ...
    Hello. Has, the problem with IPHONE, been solved? I couldn't find anything about that in forum ( also I tried to sign up into forum with 2 different email addresses and I didn't get the validation email on neither of them. Is there a problem with the osclass forum? )

    marius6 months ago

    Hi again. There are some quoted out messages in the script. What is their purpose? They are for t...
    Hi again. There are some quoted out messages in the script. What is their purpose? They are for the users or for further developments? Thank you.

    24it4 months ago

    hi, when i installa this plugin, and use my veronica theme i cant go to step 2 to upload the imag...
    hi, when i installa this plugin, and use my veronica theme i cant go to step 2 to upload the images,
    the theme keeps saying country is a mandatory field

    when i remove the code (the 2 ajax rules) from the files, every thing is back working again

    Samuel ...4 months ago

    Hi Teseo my name is Samueli have been trying to reach you through the forum but to no avail. I h...
    Hi Teseo my name is Samueli have been trying to reach you through the forum but to no avail. I have an important issue with regards to car attributes that I thought you might be able to help me with.

    Thanks

    You may also like