Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed previous code to set bg to white for transparent pixels due t…

…o noise in bg and jagged edges
  • Loading branch information...
commit 47088693d5d1c77bcdd745a0100ad051e35091d6 1 parent 718b6aa
@maikeldaloo authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 resizer.php
View
6 resizer.php
@@ -101,10 +101,6 @@ public function resize( $new_width , $new_height , $option = 'auto' )
imagealphablending( $this->image_resized , false );
imagesavealpha( $this->image_resized , true );
- // convert transparency to white when converting from PNG to JPG.
- // PNG to PNG should retain transparency as per normal.
- imagefill( $this->image_resized , 0 , 0 , IMG_COLOR_TRANSPARENT );
-
// Create the new image.
imagecopyresampled( $this->image_resized , $this->image , 0 , 0 , 0 , 0 , $optimal_width , $optimal_height , $this->width , $this->height );
@@ -408,4 +404,4 @@ private function crop( $optimal_width , $optimal_height , $new_width , $new_heig
return true;
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.