#72 – Only resize when image is larger

Status: Closed - Category: Econa
Hello,

I use your extension to resize the ‘Article images’.
To my surprise the images are also resized when they are smaller then the target size.
I would like to only downscale the images and leave the images smaller then the target size alone.

Regards
Hi,

Thanks for reporting the issue.

We have already fixed that for the next release.

If you do need it now and cannot wait just let us know and we will be more than happy to provide the required changes.

 
Hi,

I need it this week so if you could provide me the changes it would be great.
My compliments for your extension! Works great.
Change lines 749 and 771 of file /plugins/content/econa/econa.php

from:
if ($source->width != $target->width) {


to:
if ($source->width > $target->width) {


Let us know if that solves the issue.

Finally, if you like this extension you can always rate it at the Joomla extensions directory .

 
As expected this solves the issue. Thanks.
You are welcome.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review