I am having problems with one I wrote for a simple application for my corporation. I was hoping you could help.
here is my code. I have tried jpeg2wbmp, imagewbmp, image2wbmp I get either no iamge or a white image. Any help you could provide would be awesome!
//LOCATIONS of FILES
$ImgURL="http://www.domain.com/image_folder/products/SKU.jpg";
$DestFile="/location/to/final_SKU.wbmp";
$TempFile="/location/to/tmp_SKU.jpg";
$FinalName="/location/to/finalized/wbmp/SKU.wbmp";
//Move final to FTP folder and delete temp files
copy($ImgURL, $TempFile);
if (file_exists($DestFile)) {
unlink($DestFile);
};
jpeg2wbmp($TempFile, $DestFile,80,80,0);
rename($DestFile, $FinalName);
unlink($TempFile);