Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
03-13-2010, 09:18 AM #1
PHP bitmap resize: which one is right?
bitmap resize: which one is correct?
// which case below is correct?
// which case above is correct?
$oldImage = imagecreatefromwbmp($oFile['tmp_name']);
imagecopyresampled($newImage, $oldImage, 0, 0, 0, 0, $newWidth, $newHeight, $oldWidth, $oldHeight);
03-13-2010, 10:34 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,648 Times in 2,617 Posts
This one is: 'image/vnd.wap.wbmp'
Best I know, wbmp is not related to bmp by way of file structure; the wbmp is for a wireless protocol, so I'd presume that its compressed in some fashion.
Bitmap images themselves have an easy file structure. I don't believe that an imagecreatefromwbmp or imagecreatefromstring works on a bitmap image, but you can write you're own handling for it by following the bitmap file format on the wiki site.PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');
Users who have thanked Fou-Lu for this post:
03-13-2010, 10:54 PM #3