Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ps_open_imageps_open_memory_image>
^PS FunctionsLast updated: Mon, 26 Oct 2026

ps_open_image_file

(PECL ps >= 1.1.0)

ps_open_image_file — Opens image from file

Description

function ps_open_image_file(
    resource $psdoc,
    string $type,
    string $filename,
    string $stringparam = ?,
    int $intparam = 0
): int

Loads an image for later use.

Parameters

psdoc

Resource identifier of the postscript file as returned by ps_new().

type

The type of the image. Possible values are png, jpeg, or eps.

filename

The name of the file containing the image data.

stringparam

Not used.

intparam

Not used.

Return Values

Returns identifier of image or zero in case of an error. The identifier is a positive number greater than 0.

See Also


<ps_open_imageps_open_memory_image>
^PS FunctionsLast updated: Mon, 26 Oct 2026