CSS – Box shadow for all browser


Add below code for All browser
/* Box Shadow */
-webkit-box-shadow: 3px 5px 13px 0 rgba(29, 29, 29, 0.2);
-moz-box-shadow: 3px 5px 13px 0 rgba(29, 29, 29, 0.2);
box-shadow: 3px 5px 13px 0 rgba(29, 29, 29, 0.2);
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#ADADAD')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#ADADAD');

Reference LINK

PNG Transparency Resize with SimpleImage.php Class


Now have the transparency working for PNG but not gif. Here are the edits to the specific functions in case it will help someone else:

Save Function:

function save($filename, $image_type=IMAGETYPE_JPEG, $compression=75, $permissions=null) {

// do this or they'll all go to jpeg
$image_type=$this->image_type;

if( $image_type == IMAGETYPE_JPEG ) {
imagejpeg($this->image,$filename,$compression);
} elseif( $image_type == IMAGETYPE_GIF ) {
imagegif($this->image,$filename);
} elseif( $image_type == IMAGETYPE_PNG ) {
// need this for transparent png to work
imagealphablending($this->image, false);
imagesavealpha($this->image,true);
imagepng($this->image,$filename);
}
if( $permissions != null) {
chmod($filename,$permissions);
}

Reference Link : Stackoverlfow