Compress image size without lose quality using php

Compress image size without lose quality function compress($source, $destination, $quality) { $info = getimagesize($source); if ($info[‘mime’] == ‘image/jpeg’){ $image = imagecreatefromjpeg($source); }elseif($info[‘mime’] == ‘image/gif’){ $image = imagecreatefromgif($source); }elseif($info[‘mime’] == ‘image/png’){ $image = imagecreatefrompng($source); imagejpeg($image, $destination, $quality); return $destination;} } $source_image = ‘original_folder/original_image.jpg’; $compress_image = ‘compress_folder/compress_image.jpg’; $compressimage = $this->compress($source_image, $compress_image, 90); First parameter for original image…

Remove index.php file in codeigniter OR wordpress on windows server

Remove index.php file in Codeigniter or wordpress or other freamwork  on Windows IIS7 Server Here i have share my experience when i faced problem with windows server,  my post english is not well but i have share my thoughts so if anyone have suggestion please share your thoughts with me. In Codeigniter or wordpress  .htaccess file…