Post by MaxD » Fri Jul 27, 2012 5:52 am

*** Recommended for inclusion in next OpenCart release ***

Fix critical OpenCart image problems:
- enable PNG compression
- preserve original images when possible
- make File Manager automatically submit image
- remove 300 Kb and 1000px image size limitation

+ optional image white excess fix

Are you tired scrolling File Manager to find image you just uploaded? Now it will be submitted automatically, saving valuable time.

Do you know that OpenCart performs recompression for every image - even if size is right? Furthermore, often it saves PNG files without compression at all, making image files really huge!

Have you ever noticed your carefully optimized frontpage slides become 1 Mb each? With this fix your graphics will be intouch - pixel to pixel, bit to bit.

Demo: http://demo.FileShop.Biz/admin
Presented at extensions section - here.


*** Part of FileShop package - http://FileShop.Biz ***
Last edited by MaxD on Wed Aug 08, 2012 4:39 pm, edited 1 time in total.

User avatar
Active Member

Posts

Joined
Fri Jul 06, 2012 6:37 pm


Post by Avvici » Wed Aug 01, 2012 9:43 am

You should also do a fix to remove the white excess on images that are NOT square, after resizing. I have many threads on the forum with code that crops it off which is great for images that are NOT on a white background + not square.
An example is here:
http://forum.opencart.com/viewtopic.php ... it=+excess

And here is an example of it at work (with the scrolling image gallery you can see all images have no excess:
http://www.artsyfartsy.us

Nice job

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by MaxD » Sat Aug 04, 2012 10:06 am

Thank you for pointing me to this image bug. I'd like to include the fix of this into the OpenCart imaging core, but I can't fugure conditions when it shows up. Any ideas?

User avatar
Active Member

Posts

Joined
Fri Jul 06, 2012 6:37 pm


Post by Avvici » Sun Aug 05, 2012 6:30 am

Using GD just check to see if the image size is Square. If the size is NOT SQUARE then run the function. If it IS square then there is no need.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by MaxD » Wed Aug 08, 2012 4:43 pm

avvici wrote:Using GD just check to see if the image size is Square. If the size is NOT SQUARE then run the function. If it IS square then there is no need.
Avvici, thank you for explanation. I was getting it completely wrong!

I updated ImageFix with the optional cure for this white excesses issue.

Avvici, may I send you vQmod of this fix to check?

User avatar
Active Member

Posts

Joined
Fri Jul 06, 2012 6:37 pm


Post by Avvici » Wed Aug 08, 2012 9:18 pm

If you like sure. joe@involutionmedia.com

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by Avvici » Thu Aug 09, 2012 7:16 pm

Max, this will help you. I refined the code in another post:
http://forum.opencart.com/posting.php?m ... 0&p=329710

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by Avvici » Sat Aug 11, 2012 12:21 am

Max came up with a great vQmod that does all of the work for you.
http://www.opencart.com/index.php?route ... on_id=7458

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by MaxD » Sat Aug 11, 2012 4:44 pm

avvici wrote:Max came up with a great vQmod that does all of the work for you.
Avvici convinced me that this Mod should be free. So I attach it to this message.

Attachments


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2012 6:37 pm


Post by MaxD » Sat Aug 18, 2012 10:51 pm

Updated to support ALL OpenCart versions.

This fix is partly included in 1.5.4 OpenCart release.
It is still recommended to use ImageFix for better results.

User avatar
Active Member

Posts

Joined
Fri Jul 06, 2012 6:37 pm


Post by Avvici » Sun Aug 19, 2012 5:44 am

Nice job!

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC
Who is online

Users browsing this forum: No registered users and 15 guests