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_closeps_closepath>
^PS FunctionsLast updated: Mon, 26 Oct 2026

ps_close_image

(PECL ps >= 1.1.0)

ps_close_image — Closes image and frees memory

Description

function ps_close_image(resource $psdoc, int $imageid): void|false

Closes an image and frees its resources. Once an image is closed it cannot be used anymore.

Parameters

psdoc

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

imageid

Resource identifier of the image as returned by ps_open_image() or ps_open_image_file().

Return Values

Returns null on success or false on failure.

See Also


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