Creating a 24-bit BMP
Posted: 2008-08-01T01:41:07-07:00
Hi I am using IM to dynamically create a BMP to be used in another PHP module - PEAR Excel Spreadsheet that can only use BMPs.
I have the following commands:
And it creates a BMP just fine. The problem is that Excel Spreadsheet states either that the BMP is not 24 true colour or that the width exceeds 65kb. I am not asking for any help with Excel Spreadsheet but would like to get some help in understanding how the BMP is created and how to create a format I can use.
Thanks.
Z.
I have the following commands:
Code: Select all
$aCmd[] = "convert " . $image . ' -resize 170x60 ' . '/home/' . $_SESSION['account_name'] . "/public_html/images/" . $imagename;
$aCmd[] = "convert " . $image . ' -resize 170x60 ' . '/home/' . $_SESSION['account_name'] . '/public_html/images/kb_logo_web2.bmp';
Thanks.
Z.