Imagecreatefromwbmp

I dont understand this error

Warning: imagecreatefromwbmp(): ‘…/providers/13//panda.bmp’ is not a valid WBMP file in /home/luke69/public_html/admin/generate_thumbnails.php on line 84

I thought a wbmp file has a bmp extension? I used it to try to create a thumbnail from a bmp image, in the switch

switch ($type) { 
  case 1 : 
	  $im = imagecreatefromgif($image); 
	  $fun = "imagegif";
  break; 
  case 2 : 
	  $im = imagecreatefromjpeg($image); 
	  $fun = "imagejpeg";
  break; 
  case 3 : 
	  $im = imagecreatefrompng($image); 
	  $fun = "imagepng";
  break; 
  case 6 : 
	  $im = imagecreatefromwbmp($image); 
	  $fun = "imagewbmp";
  break; 
  default : 
  //do nothing 	
  }

Sorry, but you thought wrong.

wbmp (wireless bmp) files are not bmp files.

good to know…
I’ll just eliminate files of that type
thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.