BigCommerce - Hosted Ecommerce Software by Interspire

Interspire Forum

 
Go Back   Interspire Forum > Interspire Shopping Cart Community Forum > Customization and Integration > Code Modification and Development Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-25-2010, 09:01 PM
ldsuk + ldsuk is offline
Interspire Customer
 
Join Date: Jan 2010
Posts: 8
Default Product Image Quality JPEGs

HI there all.

Having some issues with product images.

The auto resizing is working but the quality of the images is very grainy.

I am wondering if there is some php code or something we can alter to improve the rendered quality of images when they are resized using the resize feature in the back office images section?
Reply With Quote
  #2  
Old 08-25-2010, 09:45 PM
wurdz + wurdz is offline
Interspire Customer
 
Join Date: Dec 2004
Location: USA
Posts: 53
Default

It's already set at 100 = Best

includes/classes/class.image.writeoptions.jpeg.php
Reply With Quote
  #3  
Old 08-26-2010, 12:01 AM
myshop + myshop is offline
Interspire Customer
 
Join Date: Aug 2008
Location: Central Coast, NSW Australia
Posts: 1,337
Default

Strange, I thought the jpg resizing worked really well with ISC.. It cannot however resize PNG or GIF images well at all.
Reply With Quote
  #4  
Old 08-26-2010, 07:44 AM
ldsuk + ldsuk is offline
Interspire Customer
 
Join Date: Jan 2010
Posts: 8
Default

Thanks for your replies.

Yes jpegs seem a little fuzzy when enlarged or resized smaller.

Original images sourced at 1240 x 1402. So images are not the issue.

As an experiment we did use png files. These worked excellent Not sure what is going on with jpegs.
Reply With Quote
  #5  
Old 03-27-2014, 04:58 PM
wurdz + wurdz is offline
Interspire Customer
 
Join Date: Dec 2004
Location: USA
Posts: 53
Default

The problem is that the quality variable is being passed in as a float value instead of an int value. It needs to be an int. I believe that since the value is not being cast to an integer value, the GD library is ignoring the value and using it's default resize value (which I believe is by default set to 75%). So changing to the correct type will enable GD to read the value correctly.

In includes/classes/class.image.writeoptions.jpeg.php change float to int and you should get nice crisp resized images.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump