How to ... OptimizePlus

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

We added a patch to ImageMagick 6.3.1-2 Beta to fix the problem your reported. It will be available by tommorrow. The patch permits you to add a parameter to OptimizeLayers() like this:
  • $layers = $images->OptimizeLayers(method=>'optimize-plus');
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

That probabably should be changed to just

Code: Select all

   $layers = $images->Layers(method=>'optimize-plus');
as layers does a lot more than just optimize images. It also compares, and I even plan some future layer composition methods, to compose pairs of images (after a shuffle image sequence operator is added) compose onto static background, and even compose static source, type methods.

Currently the -draw 'image' technique is equivelent to the 'static source' composition method.

These additions were put on hold due to other more pressing happenings.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
RetroJ
Posts: 108
Joined: 2006-10-25T08:12:50-07:00

Re: How to ... OptimizePlus

Post by RetroJ »

Hi,
Does PerlMagick 6.3.4 have this feature? It is documented in the PerlMagick manual, but when I do:

Code: Select all

$image->Layers ('method'=>'optimize');
I get the error,

Code: Select all

Usage: Layers(ref) at ./foo.pl line 20
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How to ... OptimizePlus

Post by magick »

Bug. Fixed in ImageMagick 6.3.5-0 beta available sometime tommorrow.
RetroJ
Posts: 108
Joined: 2006-10-25T08:12:50-07:00

Re: How to ... OptimizePlus

Post by RetroJ »

magick wrote:Bug. Fixed in ImageMagick 6.3.5-0 beta available sometime tommorrow.

Great, and thank you for the quick reply.
Post Reply