Post by cart builder » Sat Dec 21, 2013 9:25 pm

Greetings All,

Photos I'm uploading to OC end up blurry – only the pop up images seem fine.

I’ve a search on the issue & found it may have something to do with Opencart compressing the original images, another term I have found is image cache. The photos I’m uploading onto OC are in JPEG format, and vary between 20-900Kb, but all end up with the same amount of blurriness.

As a newbie, I don’t have a clue as to what to do to be honest, so any help would be really appreciated!

New member

Posts

Joined
Wed May 15, 2013 7:11 pm
Location - England

Post by labeshops » Sat Dec 21, 2013 9:31 pm

right click on one of the blurry images and select "image info". See if they are being resized. If they are like 60 x 60 being rescaled to 120 x 120, they will be blurry. So if this is the case, look at what you are setting your sizes to and adjust them to be at least the rescaled size.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by cart builder » Sat Dec 21, 2013 11:50 pm

Labeshops,
Many thanks for your quick reply !

I've followed your advice & adjusted the images - they're now definitely better! Out of interest, do you know if adjustments to the image quality can be done in the stylesheet ?

Thanks again.

New member

Posts

Joined
Wed May 15, 2013 7:11 pm
Location - England

Post by labeshops » Sun Dec 22, 2013 9:54 pm

You can set an image size in the css (which can get complicated - on some of my stores I set my images larger displayed into a smaller "frame" with overflow hidden) but quality is done thru the GD library when you upload the image. I want to say there is a way to change the compression level but dang if I can find it right now.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by billynoah » Mon Dec 23, 2013 1:49 am

cart builder wrote: Out of interest, do you know if adjustments to the image quality can be done in the stylesheet ?
image quality is mostly dependent on the originals you supply. in my opinion 900k is way too large unless these are for download. 50k - 150k is usually more than adequate if you use photoshop "save for web" or some quality jpeg encoding software to export your originals.

as labeshops pointed out, if you resize images to a larger pixel dimension than the original or it will look blurry. CSS has almost nothing to do with the quality of the images displayed, unless you are scaling them there. with opencart, that usually isn't the case.

Image


Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm

Post by cart builder » Mon Dec 23, 2013 2:20 am

billynoah,

I've been trying to find info on GD Library as mentioned by labelshops but I think its too advanced for me. I totally agree with your advice re large jpeg files - only reason I did the larger ones was so that after they were compressed by OC, image quality would suffer less.

I was wondering what your thoughts would be on the following bit of info i've managed to dig up:

[open: system/library/image.php]

& go to:

public function save($file, $quality = 90) {

I'm not sure if this has anything to do with image compression. I have changed the number 90 to see what happens - it doesn't make any difference - i may need to clear the image cache first but do not know how to do this. Thanks.

New member

Posts

Joined
Wed May 15, 2013 7:11 pm
Location - England

Post by billynoah » Mon Dec 23, 2013 5:05 am

gd library is for php not css.

you can adjust the quality of the save function, however as 100 is the max, it's already set quite high & shouldn't need to. what exactly are you trying to achieve? maybe you could pm me or post a link with an example of your blurry thumbnails?

i'm working on a site right now and al the images are around 60k and look perfectly fine.

Image


Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm

Post by cart builder » Mon Dec 23, 2013 5:46 am

billy,

I'll briefly explain what i'm trying to do.

I'm hoping to set up an online shop and this involves photographing products, removing the background using photo editing software, and uploading them to OC. As I have been photographing the products myself, i have found this to be quite tricky and often difficult to do, and this is where there is some loss of image quality (i'm new to product photography). I think I may need to get the photography done professionally and then try & upload those photos to see whether they are better, its also very time consuming trying to get decent product photographs!

New member

Posts

Joined
Wed May 15, 2013 7:11 pm
Location - England
Who is online

Users browsing this forum: No registered users and 27 guests