Also if anyone's interested, I added BMP support in the image resync functions. Some of the images at the remote URL from my XML feed were BMP and the image processing script at
includes/prodforums_uploader.php wouldn't process them. Here's the changes I made:
In the load() function, added:
elseif( $this->image_type == IMAGETYPE_BMP ) {
$this->image = imagecreatefromwbmp($filename);
return '.bmp';
}
In the save() function, added:
elseif( $image_type == IMAGETYPE_BMP ) {
$white = 0x00FFFFFF;
imagewbmp($this->image,$filename,$white);
}
(Note: I defined the color for white for processing bitmaps because in the imagewbmp() function, it defaults everything to a black alpha channel (background) - so you may want to adjust this to your own preferences)
In the output() function, added:
elseif( $image_type == IMAGETYPE_BMP ) {
imagewbmp($this->image);
}
|