Advertisement:

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

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #210 on: December 19, 2017, 02:09:52 pm »
Resizing of images to be uploaded is done only if the image has any dimention bigger that Maximum Size plugin setting (by default 1280 pixels), so for such small images your issue has nothing to do with the plugin.

I've answered in this other thread with all I know about internal Osclass mechanisms for this task, I can't help you with this.

Regards

ogbavictor

  • Newbie
  • *
  • Posts: 1
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #211 on: March 12, 2018, 12:14:29 am »
Hey author. For some reason this plugin doesn't work for me. Tried everything a newbie can do.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #212 on: March 15, 2018, 01:16:23 pm »
Hi,

You don't provide any details, did you modify item-post.php in your theme as shown in Help page? ???

Regards

campusmart

  • Newbie
  • *
  • Posts: 34
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #213 on: March 21, 2018, 04:10:26 pm »
Hello teseo,

I use Gum Theme, how do I set up this plugin

I have this in my  item-post.php

Code: [Select]
<div class="col-xs-12 form-group box-border"><?php _e('<strong>Add Photos: </strong>','gum'); ?><?php _e('If you have any issues uploading pictures,kindly use another browser','gum'); ?>          <?php if( osc_images_enabled_at_items() ) {                        GumItemForm::ajax_photos(); ?>                        <?php if(!$edit) { ?>                        <p class="text-info" style="font-weight: 600;"><i class="fa fa-info-circle"></i> <?php _e('Ads with 2-3 images get more views and sales.''gum'); ?></p>                         <?php  ?>                         <?php ?>                    </div>

Where do I pit this?
Code: [Select]
if (function_exists('przi_ajax_uploader')) przi_ajax_photos();else ItemForm::ajax_photos();

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #214 on: March 21, 2018, 04:57:01 pm »
Hi,

Sorry, looks like Gum theme is not compatible with this plugin.

Regards

kirtaph

  • Newbie
  • *
  • Posts: 18
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #215 on: April 21, 2018, 03:03:46 pm »
Hi Teseo and many thanks for shared with community this wonderful plugin.
So, I've one problem! All working fine but, sometimes "Make Primary" don't work and primary photo is set randomly.

Can you help me to find this bug? I'use WizEstate and OSClass 3.7.1

Thanks! Any help would appreciate.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #216 on: April 21, 2018, 04:11:19 pm »
Hi,

???

To reproduce the issue here I'd need a specific sequence of events that always produce that error. Or is it absolutely random?

Regards

kirtaph

  • Newbie
  • *
  • Posts: 18
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #217 on: April 21, 2018, 08:00:14 pm »
Absolutely Random! It Work for some day then on some ads "Make Primary" doesn't work!

I used it on two site and the problem is on both.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #218 on: April 22, 2018, 12:57:08 pm »
In that case, I can't do anything about it. It might be something specific to your Osclass setup or server. ??? Come back if you find some kind of pattern.

Anyway, you can always change primary image dragging thumbnails, so at least there's that.

Regards

kirtaph

  • Newbie
  • *
  • Posts: 18
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #219 on: May 09, 2018, 01:17:10 pm »
Hi, I've tested with the images that cause the bug but, the images upload with the correct filename as you seen in the next photo:

https://imgur.com/a/RqFtH3B

When miniature or the slideshow is loaded the image fill in the inverse order as you seen in the next photo:

https://imgur.com/a/bKhfAjj
https://imgur.com/a/zCGbgqe

Have you any idea?!

I see now that in the Database the image as write in the inverse order:

https://imgur.com/a/Un3YMmk

I think that is necessary to order the file before write in the database.
« Last Edit: May 09, 2018, 01:28:59 pm by kirtaph »

kirtaph

  • Newbie
  • *
  • Posts: 18
[SOLVED] [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #220 on: May 09, 2018, 08:39:02 pm »
Finally I've solved the bug!!! The solution is in the oc-includes/osclass/model/ItemResource.php on line 104

I add this code:  $this->dao->orderBy('pk_i_id', 'ASC');

and all working fine!

Sophia_OS

  • Sr. Member
  • ****
  • Posts: 416
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #221 on: July 27, 2018, 07:49:43 am »
hey teseo,
this plugin dosn't work with modern theme,
please test it with modern theme and see it,
when you are choosing the images, images don't sit correctly side by side!
i guess css file set just to bender
would you please help me to set the css file to modern?
thanks

Sophia_OS

  • Sr. Member
  • ****
  • Posts: 416
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #222 on: July 29, 2018, 11:35:12 pm »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Plugin] Pre-resize Images (v. 2.2.1 released)
« Reply #223 on: July 31, 2018, 01:14:25 pm »
Hi,

I have tested the plugin with latest Modern 5.1.0 and I couldn't see other problem than the "Make Primary Image" link appearing inside the image sometimes (this is indeed a CSS issue). Of course, this is for desktop view, Modern theme has never been responsive.

Regards

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Plugin] Pre-resize Images (v. 2.3.0 released)
« Reply #224 on: July 31, 2018, 01:24:43 pm »
Hi everyone,

Version 2.3.0 is already available in the Market. Now the plugin includes a new system allowing full rearrangement of images in any circumstances (not only for newly uploaded images).

Please notice that texts shown to the user have changed, so you'll need to rebuild your translation file if you're using a language other than english or spanish (bundled with the plugin).

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

Enjoy, regards