Loading


Advertisement:

Author Topic: [Plugin] Pre-resize Images (v. 2.1.0 released)  (Read 10182 times)

teseo

  • Hero Member
  • *****
  • Posts: 5642
[Plugin] Pre-resize Images (v. 2.1.0 released)
« on: February 19, 2016, 06:48:20 pm »


Pre-resize Images

Hi,

This plugin is aimed to save PHP memory on images uploading. No more "Fatal error: Allowed memory size of xxxxxxxxx bytes exhausted" when your users try to send their big smartphone images! :D

It's already in the Market for a while now, but I didn't want to announce it here until having a quite solid version (1.1.0 now). Some issues have been detected by its first users and now they are fixed. Download, configure and enjoy:

http://market.osclass.org/plugins/miscellaneous/pre-resize-images_496

Regards

« Last Edit: January 23, 2017, 04:34:25 pm by teseo »

ala

  • Full Member
  • ***
  • Posts: 130
Re: [Plugin] Pre-resize Images
« Reply #1 on: February 20, 2016, 09:29:16 am »
i replace it here but it not work for me


<div class="box photos">
               
                        <?php
                            if(osc_images_enabled_at_items()) {
                                if(cammarket_is_fineuploader()) {
                                    // new ajax photo upload
                                    //ItemForm::ajax_photos();
                                    if (function_exists('przi_ajax_uploader')) przi_ajax_photos();
else ItemForm::ajax_photos();
                                }
                            } else { ?>
                        <h2><?php _e('Photos', 'tt'); ?></h2>
                        <div id="photos">
                            <div class="row">
                                <input type="file" name="photos[]" />
                            </div>
                        </div>

teseo

  • Hero Member
  • *****
  • Posts: 5642
Re: [Plugin] Pre-resize Images
« Reply #2 on: February 20, 2016, 12:33:45 pm »
Hi,

What theme are you using and what is the name of that file (item-post.php, item-edit.php)? ???

Regards

gnoe

  • Full Member
  • ***
  • Posts: 245
Re: [Plugin] Pre-resize Images
« Reply #3 on: February 21, 2016, 12:09:32 am »
Anyone wanting to translate text strings to another lang, you can do it on index.php
e.g "Make primary image" on line 315

Don't forget to convert the file to UTF-8 from ANSI.

teseo

  • Hero Member
  • *****
  • Posts: 5642
Re: [Plugin] Pre-resize Images
« Reply #4 on: February 21, 2016, 12:20:33 am »
Hi,

That string is included in oc-content/languages/[language code]/core.po, so it should appear already translated to the current language... ???

Regards

ala

  • Full Member
  • ***
  • Posts: 130
Re: [Plugin] Pre-resize Images
« Reply #5 on: February 21, 2016, 08:23:05 am »
I use one theme

It also in item post and edit the same code

gnoe

  • Full Member
  • ***
  • Posts: 245
Re: [Plugin] Pre-resize Images
« Reply #6 on: February 21, 2016, 09:06:24 am »
yep, found 'Make primary image' string on latest 3.6.1 core lang file. Had to update it. ;)

Some other strings are still not translated.
e.g
'Cancel','Retry','Delete' around 113 line.



teseo

  • Hero Member
  • *****
  • Posts: 5642
Re: [Plugin] Pre-resize Images
« Reply #7 on: February 21, 2016, 03:05:22 pm »
Hi,

Some other strings are still not translated.
e.g
'Cancel','Retry','Delete' around 113 line.

You're right, will be fixed on next update 1.1.1

I use one theme

I've sent you a PM.

Regards

PaulBoss

  • Newbie
  • *
  • Posts: 2
Re: [Plugin] Pre-resize Images
« Reply #8 on: March 02, 2016, 10:19:20 am »
Thx the plugin work's great. Can you please add the image rotator with the plugin?

teseo

  • Hero Member
  • *****
  • Posts: 5642
Re: [Plugin] Pre-resize Images
« Reply #9 on: March 02, 2016, 12:47:22 pm »
Hi,

Sorry, what do you mean by "image rotator"? ???

Regards
« Last Edit: March 02, 2016, 12:49:28 pm by teseo »

ala

  • Full Member
  • ***
  • Posts: 130
Re: [Plugin] Pre-resize Images
« Reply #10 on: March 03, 2016, 07:49:00 am »
it's like olx ..
images uploaded can rotation and drag for main photo,
i think may be you can do it well with js

regard
« Last Edit: January 28, 2017, 04:43:44 pm by ala »

teseo

  • Hero Member
  • *****
  • Posts: 5642
Re: [Plugin] Pre-resize Images
« Reply #11 on: March 03, 2016, 12:58:50 pm »
My main goal was to stop PHP memory errors from happening. The plugin already adds "Make primary" thas is missing in most themes, but I included it only because the basis is already there and it wasn't too hard. So no plans to add new features, sorry.

i replace it here but it not work for me

I assume you got it working and there's no bug in the current code...

Regards

SteveJohnson

  • Sr. Member
  • ****
  • Posts: 285
  • Golden tip - Clear your cache :|
Re: [Plugin] Pre-resize Images
« Reply #12 on: March 03, 2016, 06:07:14 pm »
Osclass needed such a plugin. Will check soon, and write back.
Thanks teseo!

pecke

  • Full Member
  • ***
  • Posts: 167
Re: [Plugin] Pre-resize Images
« Reply #13 on: March 04, 2016, 12:39:47 am »
I must say thanks too, i use it on my site.

itcafeonline

  • Full Member
  • ***
  • Posts: 237
Re: [Plugin] Pre-resize Images
« Reply #14 on: March 04, 2016, 02:37:10 pm »
teseo, can we make this work with the backend (admin) as well, meaning for images uploaded from admin section please?