Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: thumbnail image quality  (Read 4465 times)

Offline smallfish

  • Full Member
  • ***
  • Posts: 129
  • Karma: +15/-2
    • View Profile
thumbnail image quality
« on: March 08, 2013, 03:43:36 AM »
The thumbnail image quality is not good. Where can I increase the quality of the thumbnail?
Thank you!

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: thumbnail image quality
« Reply #1 on: March 08, 2013, 04:52:56 AM »
Thumbnail images are based on your source images. Load better quality source (main) images and thumbnails will be generated with better quality.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline smallfish

  • Full Member
  • ***
  • Posts: 129
  • Karma: +15/-2
    • View Profile
Re: thumbnail image quality
« Reply #2 on: March 10, 2013, 07:17:16 PM »
OK, I find that the image class which is already used 100% as the quality.
Then, I really need to improve the quality of the source image file.
Thanks!

public function save($file, $quality = 100) {
      $extension = pathinfo($file,PATHINFO_EXTENSION);
        if ($extension == 'jpeg' || $extension == 'jpg') {
            imagejpeg($this->image, $file, $quality);

 

Powered by SMFPacks Social Login Mod