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)
Check Out this Related Man Page
IMAGICK.GETITERATORINDEX(3) 1 IMAGICK.GETITERATORINDEX(3)Imagick::getIteratorIndex - Gets the index of the current active image
SYNOPSIS
int Imagick::getIteratorIndex (void )
DESCRIPTION
Returns the index of the current active image within the Imagick object. This method is available if Imagick has been compiled against
ImageMagick version 6.2.9 or newer.
RETURN VALUES
Returns an integer containing the index of the image in the stack.
ERRORS /EXCEPTIONS
Throws ImagickException on error.
EXAMPLES
Example #1
Using Imagick.getIteratorIndex(3):
Create images, set and get the iterator index
<?php
$im = new Imagick();
$im->newImage(100, 100, new ImagickPixel("red"));
$im->newImage(100, 100, new ImagickPixel("green"));
$im->newImage(100, 100, new ImagickPixel("blue"));
$im->setIteratorIndex(1);
echo $im->getIteratorIndex();
?>
SEE ALSO Imagick.setIteratorIndex(3), Imagick.getImageIndex(3), Imagick.setImageIndex(3).
PHP Documentation Group IMAGICK.GETITERATORINDEX(3)
Hi
In our html pages, we have the image path as "/dir1/dir2/image.gif".
We are changing the location of the image directory.
So now we wish to do a global search and replace the path. I think we are having trouble with forward slash character.
Please help
Thanks in advance
Vikas
a... (3 Replies)
I would like to insert a .gif image into a text file that is generated by a Unix-based database application.
Can anyone please tell me how I can achieve this? (7 Replies)
Because I am not creative, I did this:
find . -type f -name '*.GIF'|cut -d'/' -f2|awk -F. '{print "mv "$1".GIF "$1".gif --reply=yes"}' > case.sh
Then ran the case.sh - I was wondering if you guys could come up with something more efficient? Or even limit CPU useage? It is killing my poor ext3... (3 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)