GD و Image Functions
PHP Manual

jpeg2wbmp

(PHP 4 >= 4.0.5, PHP 5)

jpeg2wbmpتبدیل فایل تصویر JPEG به فایل تصویر WBMP

Description

bool jpeg2wbmp ( string $jpegname , string $wbmpname , int $dest_height , int $dest_width , int $threshold )

تبدیل فایل JPEG به فایل WBMP.

Parameters

jpegname

مسیر فایل JPEG.

wbmpname

مسیر فایل WBMP مقصد.

dest_height

ارتفاع تصویر مقصد.

dest_width

عرض تصویر مقصد.

threshold

مقدار آستانه بین 0 و 8 (مشمول).

Return Values

Returns TRUE on success or FALSE on failure.

Examples

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);
?>

Notes

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.

See Also


GD و Image Functions
PHP Manual