PHP Function Reference:
Ziin Image Formats:

imagecreatefromrpgm

(PHP 5, Ziin Image Formats)
Create a new image from file or URL

Description

resource imagecreatefromrpgm ( string $filename ) imagecreatefromrpgm() returns an image identifier representing the image obtained from the given filename.

Parameters

filename

Path to the RPGM image.

Return Values

Returns an image resource identifier on success, FALSE on errors.

Examples

<?php
$im = @imagecreatefromrpgm('test.rpgm');
if (!$im)
{
echo 'Invalid image supplied';
}
else
{
imagepng($im, 'out.png');
}
imagedestroy($im);