Post by tommix » Wed Jun 13, 2012 10:08 pm

Hi, where can i find setting (in php) which responsible for bad quality of image in catalog. In product page quality is good, but in catalog it's aweful. Not acceptable at all, looks like quality is set to ~30-40%

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by rph » Wed Jun 13, 2012 11:24 pm

/system/libarary/image.php

Code: Select all

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

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by tommix » Thu Jun 14, 2012 1:29 am

as you can see the default is 90% and as i said i'm getting not 90% quality but more like 40% and as i understand this function is used for every picture so why in product page image is good and in catalog not? so this means this function not causing the problem. problem is somewhere else, maybe in resize?

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by rph » Thu Jun 14, 2012 2:11 am

Did you try changing it to 100 and clearing your image cache before jumping to that conclusion?

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by tommix » Thu Jun 14, 2012 2:54 am

rph wrote:Did you try changing it to 100 and clearing your image cache before jumping to that conclusion?
No i did not try it, because i'm not noob in programming, but just to make you happy - i tried and still the same problem :) Problem is somewhere in resizing.

EDIT: looks like i found the problem. in catalog images are used of 80x80 size, but forced to be in 180x180 size. well it looks like i posted problem too soon, fault was in Shopica theme, not OpenCart itself. Sorry, you may delete the topic.

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by rph » Thu Jun 14, 2012 3:53 am

tommix wrote:No i did not try it, because i'm not noob in programming
You had me fooled.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by GoGo OpenCart » Thu Jun 14, 2012 6:18 am

tommix wrote:fault was in Shopica theme
Ahhh... :bash:

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by veselina24 » Thu Jun 21, 2012 7:42 pm

so, can i ask you .. in which file i have to change image size ? i use shoppica theme, too

Newbie

Posts

Joined
Thu Jun 21, 2012 7:35 pm

Post by wilek666 » Mon Apr 25, 2016 2:37 am

You can change it settings=>images=> e.g. I had set up image related product 80x80 and my template (journal) was displaying this foto with size 200x200 so the resolution was poor, after change to 200x200 everything is perfect.

http://www.ortopediko.pl
http://www.pszczelafarma.pl


User avatar
New member

Posts

Joined
Sun Dec 07, 2014 2:26 am
Location - Warsaw, Poland
Who is online

Users browsing this forum: Semrush [Bot] and 19 guests