php man page for jpeg2wbmp

Query: jpeg2wbmp

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

JPEG2WBMP(3)								 1							      JPEG2WBMP(3)

jpeg2wbmp - Convert JPEG image file to WBMP image file

SYNOPSIS
bool jpeg2wbmp (string $jpegname, string $wbmpname, int $dest_height, int $dest_width, int $threshold)
DESCRIPTION
Converts a JPEG file into a WBMP file.
PARAMETERS
o $jpegname - Path to JPEG file. o $wbmpname - Path to destination WBMP file. o $dest_height - Destination image height. o $dest_width - Destination image width. o $threshold - Threshold value, between 0 and 8 (inclusive).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 jpeg2wbmp(3) example <?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
png2wbmp(3). PHP Documentation Group JPEG2WBMP(3)
Related Man Pages
imagecreatefromwebp(3) - php
imagecreatefromwbmp(3) - php
image2wbmp(3) - php
imagecreatefromjpeg(3) - php
imagewbmp(3) - php
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!