Imagick::readImageFile

(PECL imagick 2.0.0)

Imagick::readImageFileReads image from open filehandle

Описание

bool Imagick::readImageFile ( resource $filehandle [, string $fileName = null ] )

Reads image from open filehandle

Список параметров

filehandle

fileName

Возвращаемые значения

В случае успешной работы возвращает TRUE.

Ошибки

Вызывает ImagickException при ошибке.

Коментарии

An example of reading an image file from a URL, using a handle returned by fopen():

<?php
$handle 
fopen('http://example.com/foo.jpg''rb');
$img = new Imagick();
$img->readImageFile($handle);
$img->resizeImage(12812800);
$img->writeImage('images/foo.jpg');
?>
2008-12-26 15:00:27
http://php5.kiev.ua/manual/ru/imagick.readimagefile.html
The second parameter will update the result of getFilename() if set. Otherwise the result of getFilename() will retain its original value, prior to calling readImageFile().
2014-11-20 09:15:06
http://php5.kiev.ua/manual/ru/imagick.readimagefile.html

    Поддержать сайт на родительском проекте КГБ