# PHP-BLP **Repository Path**: mirrors_linslin/PHP-BLP ## Basic Information - **Project Name**: PHP-BLP - **Description**: Blizzard BLP Image File Parser. - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-08-09 - **Last Updated**: 2026-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PHP-BLP Blizzard BLP Image File Parser for PHP. Requires [GD](http://php.net/manual/en/book.image.php) & [ImageMagick](http://php.net/manual/en/book.imagick.php). Currently supported: * BLP0 (Reign of Chaos Beta) * BLP1 (All other War3 versions) Basic Example ========== ```php saveAs("war3mapMap.png"); $blp_image->saveAs("war3mapMap.jpg"); ?> ``` Advanced Example ========== ```php image(); // convert to jpeg $image->setImageFormat("jpeg"); $image->writeImage('output.jpg'); // convert to png $image->setImageFormat("png"); $image->writeImage('output.png'); // display the image header("Content-Type: image/png"); echo $image->getImageBlob(); $blpfile->close(); } catch (Exception $e) { echo 'BLPImage Exception: ', $e->getMessage(), "\n"; exit; } ?> ``` Thanks to [Dr Super Good](https://github.com/DrSuperGood) for his [BLP Specifications](https://www.hiveworkshop.com/threads/blp-specifications-wc3.279306/) and help with bug fixes.