PHP Classes

BMP resize

Recommend this page to a friend!

      Image Upload Component  >  All threads  >  BMP resize  >  (Un) Subscribe thread alerts  
Subject:BMP resize
Summary:do it resize BMP
Messages:2
Author:f7up com
Date:2009-12-10 11:56:52
Update:2009-12-14 09:09:01
 

  1. BMP resize   Reply   Report abuse  
Picture of f7up com f7up com - 2009-12-10 11:56:53
Hi :)

as we know about BMP in Linux that doesn't support BMP in GD

so, do this package resize it ?? or make thumbnail ??


thanks

  2. Re: BMP resize   Reply   Report abuse  
Picture of omkar omkar - 2009-12-14 09:09:01 - In reply to message 1 from f7up com
hello dear

following link will help in resize bmp file

opensourceprogrammer.blogspot.com/2 ...

code :
$new_image=imagecreatetruecolor($thum_width,$thum_height)or die('Cannot Initialize new GD image stream');

if($extension=='bmp'){

$image=@imagecreatefromwbmp($source);

}
imagecopyresampled($new_image,$image,0,0,$x,$y,$thum_width,$thum_height,$width,$height);

if($extension=='bmp'){

image2wbmp($new_image,$destination);

}