Query: imagecreatefromwebp
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IMAGECREATEFROMWEBP(3) 1 IMAGECREATEFROMWEBP(3) imagecreatefromwebp - Create a new image from file or URLSYNOPSISresource imagecreatefromwebp (string $filename)DESCRIPTIONimagecreatefromwebp(3) returns an image identifier representing the image obtained from the given filename. Tip A URL can be used as a filename with this function if the fopen wrappers have been enabled. See fopen(3) for more details on how to specify the filename. See the "Supported Protocols and Wrappers" for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide.PARAMETERSo $filename - Path to the WebP image.RETURN VALUESReturns an image resource identifier on success, FALSE on errors.EXAMPLESExample #1 Convert an WebP image to a jpeg image using imagecreatefromwebp(3) <?php // Load the WebP file $im = imagecreatefromwebp('./example.webp'); // Convert it to a jpeg file with 100% quality imagejpeg($im, './example.jpeg', 100); imagedestroy($im); ?> PHP Documentation Group IMAGECREATEFROMWEBP(3)
Related Man Pages |
---|
imagegif(3) - php |
imagecreatefromgif(3) - php |
imagecreatefromwbmp(3) - php |
imagecreatefromjpeg(3) - php |
imagerotate(3) - php |
Similar Topics in the Unix Linux Community |
---|
jpg image |
fopen() - don't know what I'm doing wrong |