php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71344 Replacement for Imagick::mosaicImages()
Submitted: 2016-01-12 04:14 UTC Modified: 2016-05-17 05:58 UTC
From: sysop at otspr dot net Assigned: krakjoe (profile)
Status: Closed Package: imagick (PECL)
PHP Version: 7.0.2 OS: Ubuntu 14.04.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sysop at otspr dot net
New email:
PHP Version: OS:

 

 [2016-01-12 04:14 UTC] sysop at otspr dot net
Description:
------------
Since Imagick::mosaicImages() has been deprecated what can we use instead? Would this help? http://php.net/manual/en/imagick.flattenimages.php. If so, what would be the replacement for mosaicImages() ?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-12 13:02 UTC] danack@php.net
I believe it should be:

$image->mergeImageLayers(\Imagick::LAYERMETHOD_MOSAIC);

I haven't actually tested this - please let me know if it works.


"Since Imagick::mosaicImages() has been deprecated"

fyi, it's the underlying library that deprecates functions....so you might want to refer to the upstream library http://nextgen.imagemagick.org/script/magick-wand.php

Though in this case it probably wouldn't of helped, as I can't see a list of replacement methods for deprecated methods.
 [2016-01-12 13:13 UTC] sysop at otspr dot net
Yes! I took it upon myself to flip through the code after I added this request and found it. That works perfectly and it was exactly what I was looking for.

Also, thanks for the clarification of the underlying library.

Thanks!
 [2016-05-17 05:58 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 03:01:31 2024 UTC