IMAGICK.PINGIMAGEFILE(3) 1 IMAGICK.PINGIMAGEFILE(3)Imagick::pingImageFile - Get basic image attributes in a lightweight manner
SYNOPSIS
bool Imagick::pingImageFile (resource $filehandle, [string $fileName])
DESCRIPTION
This method can be used to query image width, height, size, and format without reading the whole image to memory. This method is available
if Imagick has been compiled against ImageMagick version 6.2.9 or newer.
PARAMETERS
o $filehandle
- An open filehandle to the image.
o $fileName
- Optional filename for this image.
RETURN VALUES
Returns TRUE on success.
EXAMPLES
Example #1
Using Imagick.pingImageFile(3)
Opening a remote location
<?php
/* fopen a remote location */
$fp = fopen("http://example.com/test.jpg");
/* create new imagick object */
$im = new Imagick();
/* pass the handle to imagick */
$im->pingImageFile($fp);
?>
SEE ALSO Imagick.pingImage(3), Imagick.pingImageBlob(3), Imagick.readImage(3), Imagick.readImageBlob(3), Imagick.readImageFile(3).
PHP Documentation Group IMAGICK.PINGIMAGEFILE(3)
Check Out this Related Man Page
IMAGICK.OPTIMIZEIMAGELAYERS(3) 1 IMAGICK.OPTIMIZEIMAGELAYERS(3)Imagick::optimizeImageLayers - Removes repeated portions of images to optimize
SYNOPSIS
bool Imagick::optimizeImageLayers (void )
DESCRIPTION
Compares each image the GIF disposed forms of the previous image in the sequence. From this it attempts to select the smallest cropped
image to replace each frame, while preserving the results of the animation. This method is available if Imagick has been compiled against
ImageMagick version 6.2.9 or newer.
RETURN VALUES
Returns TRUE on success.
ERRORS /EXCEPTIONS
Throws ImagickException on error.
EXAMPLES
Example #1
Using Imagick.optimizeImageLayers(3)
Reading, optimizing and writing a GIF image
<?php
/* create new imagick object */
$im = new Imagick("test.gif");
/* optimize the image layers */
$im->optimizeImageLayers();
/* write the image back */
$im->writeImages("test_optimized.gif", true);
?>
SEE ALSO Imagick.compareImageLayers(3), Imagick.writeImages(3), Imagick.writeImage(3).
PHP Documentation Group IMAGICK.OPTIMIZEIMAGELAYERS(3)
I need to process a file in real time as it is being FTPed from a remote server. In my test environment, I wrote a process that would:
1) Open the file - fopen(filename, "r")
2) Go to the offset where I left off on the previous itteration (fseek)
3) Read 2K blocks and append each block to a... (1 Reply)
Hi,
I am unable to view/open the image I uploded in one of the forums.
https://www.unix.com/showthread.php?t=37793&page=2&pp=20
Please help.
enc. (2 Replies)
I'm working on installing ImageMagick and Imagick and could use some help. I have XAMPP installed on OS 10.5.8. I managed to get ImageMagick installed using macports. I then created a .bash_profile and added this path to it:
export PATH=$PATH:/Volumes/bootay/Applications/XAMPP/xamppfiles/bin/... (4 Replies)
5Thank you to those who responded.
After a crazy amount of troubleshooting and getting hints and feedback from others, I was so darn determined to get on with my tutorials and I found the solution myself.
Keyword search: php and 'Mac computer' and fopen and chmod.
Using:php and Mac and... (1 Reply)