(PHP 4 >= 4.0.5, PHP 5)
jpeg2wbmp — تبدیل فایل تصویر JPEG به فایل تصویر WBMP
تبدیل فایل JPEG به فایل WBMP.
مسیر فایل JPEG.
مسیر فایل WBMP مقصد.
ارتفاع تصویر مقصد.
عرض تصویر مقصد.
مقدار آستانه بین 0 و 8 (مشمول).
Returns TRUE on success or FALSE on failure.
Example #1 مثال jpeg2wbmp()
<?php
// Path to the target jpeg
$path = './test.jpg';
// Get the image sizes
$image = getimagesize($path);
// Convert image
jpeg2wbmp($path, './test.wbmp', $image[1], $image[0], 5);
?>
Note: WBMP support is only available if PHP was compiled against GD-1.8 or later.
Note: JPEG support is only available if PHP was compiled against GD-1.8 or later.