PHP Function Reference:
Ziin Image Formats:

imagegr8

(PHP 5, Ziin Image Formats)
Output a GR8 image to a file

Description

bool imagegr8 ( resource $image , string $filename ) Saves a GR8 image from the given image.

Parameters

image

An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().

filename

The path to save the file to.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

<?php
$im = imagecreatefrompng("test.png");
imagegr8($im, "out.gr8");
imagedestroy($im);