IMAGICK.SETIMAGEDELAY(3) 1 IMAGICK.SETIMAGEDELAY(3)Imagick::setImageDelay - Sets the image delay
SYNOPSIS
bool Imagick::setImageDelay (int $delay)
DESCRIPTION
Sets the image delay. For an animated image this is the amount of time that this frame of the image should be displayed for, before dis-
playing the next frame.
The delay can be set individually for each frame in an image.
PARAMETERS
o $delay
- The amount of time expressed in 'ticks' that the image should be displayed for. For animated GIFs there are 100 ticks per sec-
ond, so a value of 20 would be 20/100 of a second aka 1/5th of a second.
RETURN VALUES
Returns TRUE on success.
ERRORS /EXCEPTIONS
Throws ImagickException on error.
EXAMPLES
Example #1
Modify animated Gif with Imagick.setImageDelay(3)
<?php
// Modify an animated Gif so that it's frames are played at a variable speed,
// varying between being shown for 50ms down to 0ms, which will cause the frame
// to be skipped in most browsers.
$imagick = new Imagick(realpath("Test.gif"));
$imagick = $imagick->coalesceImages();
$frameCount = 0;
foreach ($imagick as $frame) {
$imagick->setImageDelay((($frameCount % 11) * 5));
$frameCount++;
}
$imagick = $imagick->deconstructImages();
$imagick->writeImages("/path/to/save/output.gif", true);
?>
PHP Documentation Group IMAGICK.SETIMAGEDELAY(3)
Check Out this Related Man Page
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)
Hi all,
Actually I want to flash the image which I have in my system and when I am trying to do it,it is not showing it.simply creates the frame but not displaying the image.I am attaching the code--
Please take a look on it and please provide your valuable suggestions on it so that I... (2 Replies)
I found some ascii art that is animated (vt100) and would like to view it properly. However, when I try using 'cat', the file is done almost the instant I press enter. How can I view the file in a slower fashion (similar to the days of 2400baud, for example)? (2 Replies)
if the value > 100 delete the line
delay time: 42.978 ms
delay time: 43.684 ms
delay time: 41.082 ms
delay time: 44.845 ms
delay time: 40000.057 ms
delay time: 41.158 ms
delay time: 42.239 ms
delay time: 50.579 ms
delay time: 46.334 ms
to (7 Replies)
Bash Shell/Oracle Linux 6.4
Following is an ls -lh output. Files which are equal to or higher than 1Gigabytes will displayed with G in the 5th column of the output.
I am trying to find all files which are equal to or higher than 1G
File sizes are shown in the 5th column. So, I tried cut -d'... (7 Replies)