Jump to content



Photo
* * * * * 1 votes

KissIT Image Thumnailer


  • Please log in to reply
162 replies to this topic

#161   joli1811

joli1811

    Anybody seen this leprechaun say yeah !!

  • Community Sponsor
  • 1,862 posts
  • Real Name:john dunlop
  • Gender:Male
  • Location:Ireland

Posted 05 July 2014 - 17:34

go back a bit in the thread remember to empty your cache and let them rebuild

 

 

http://forums.oscomm...umnailer/page-3

 

$quality = !is_numeric ( $quality ) ? 7 : floor ( $quality / 10 );
         if ( $quality < 0 ) {
         $quality = 0;
         } elseif ( $quality > 9 ) {
         $quality = 9;
         }



#162 ONLINE   swcharlie

swcharlie
  • Members
  • 24 posts
  • Real Name:Schalk
  • Gender:Male

Posted 05 July 2014 - 18:11

Just before seeing your reply I seem to have gotten it working with the following:

 

          //$quality = is_null ( $quality ) ? 0 : $quality;
          $quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 );
          $filters = is_null ( $filters ) ? null : $filters;
          return imagepng( $this->_image, $save_in, $quality, $filters );
          break;
        default :

 

But will raher replace it with the above code. Thanks!



#163   joli1811

joli1811

    Anybody seen this leprechaun say yeah !!

  • Community Sponsor
  • 1,862 posts
  • Real Name:john dunlop
  • Gender:Male
  • Location:Ireland

Posted 05 July 2014 - 19:05

Nice that you posted for others to see :thumbsup:

 

Regards

Joli