Post by soamjena » Sat Jan 20, 2018 10:26 pm

Here is one of my opencart website,
https://goo.gl/BEZcjf

We do beautiful high quality thumbnails with flat colors to make the website nice, flat and minimal but it seems Opencart is crushing the images quality so bad, make it look like mud. ??? ??? ???

How do I set it not to kill my images quality ?

User avatar
Active Member

Posts

Joined
Mon Feb 13, 2012 3:35 pm

Post by IP_CAM » Mon Jan 22, 2018 9:34 am

Well, it's not so easy, to make this work best, considering the different Screen Resolutions used by Visitors.
But I created a List, just to give you some ideas, what happen to your images, depending on Screen Resolutions.
By Example, to present 501x501px images, you created a 900x900px. MASTER, wich will have to be recalculated,
to display in that size, and so looses on Quality, by nature of things. And the 550x550px images have to serve in
different sizes, even blown up to 699x699px., and that's even worse. And such will not add to quality, that's for sure... :D
Good Luck!
Ernie

Code: Select all

Image-size:
https://www.qubesys.com/image/cache/catalog/module_icons/awesome_responsive_thumbnail_carousel_op_ext-900x900.jpg
results in:
900px × 900px (scaled to 551px × 551px)
---
Image-size:
https://www.qubesys.com/image/cache/catalog/module_icons/awesome_responsive_thumbnail_carousel_op_ext-550x550.jpg
results in:
550px × 550px (scaled to 699px × 699px)
550px × 550px (scaled to 555px × 555px)
550px × 550px (scaled to 345px × 345px)
550px × 550px (scaled to 318px × 318px)
---
Image-size:
https://www.qubesys.com/image/cache/catalog/module_icons/awesome_responsive_thumbnail_carousel_op_ext-74x74.jpg
results in:
74px × 74px

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by soamjena » Mon Jan 22, 2018 11:45 am

We had uploaded 1000 x 1000.

It seems somewhere in code, the image processor has % set to low.
Do you know where ?

User avatar
Active Member

Posts

Joined
Mon Feb 13, 2012 3:35 pm

Post by IP_CAM » Tue Jan 23, 2018 4:27 am

Well, you seem to be a much better Coder than I will ever be, according to that Site,
still, you can't beat the System, as it works by default. It's very important, to set the
image sizes, that they will not have to be 'reworked' too much by the System, but this
requires Time and Testing, there is no way around. And such heavy depends on the
theme used as well, some designers beat themselfs, like in your Theme, by then getting
a broad range of images sizes, even blown-up one's, depending on screen resolutions. :crazy:
Good Luck!
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by soamjena » Tue Jan 23, 2018 3:25 pm

Sorry, all I want to know is, where in the code in opencart 3 is the image processing quality % set , so I can edit that and see

User avatar
Active Member

Posts

Joined
Mon Feb 13, 2012 3:35 pm

Post by uksitebuilder » Tue Jan 23, 2018 4:04 pm

system/library/image.php

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by soamjena » Tue Jan 23, 2018 4:07 pm

uksitebuilder wrote:
Tue Jan 23, 2018 4:04 pm
system/library/image.php
Thanks, this is what I was looking to read.
Another question, can a custom theme over ride this phenomenon ?

User avatar
Active Member

Posts

Joined
Mon Feb 13, 2012 3:35 pm

Post by uksitebuilder » Tue Jan 23, 2018 6:08 pm

Absolutely. They can even use their own image functions, bypassing OpenCart's library altogether.

I would advise testing on the default OC Theme first to see if the problem with image compression is happening there, however, not seen any posts from the masses of others who use OpenCart regarding this, so most likely may be custom theme related.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by soamjena » Tue Jan 23, 2018 6:13 pm

OK I HAVE tagged my theme developer to this thread, he will check and respond.

User avatar
Active Member

Posts

Joined
Mon Feb 13, 2012 3:35 pm
Who is online

Users browsing this forum: No registered users and 244 guests