|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-06-22 17:54 UTC] lee dot traynor at skeptic dot de
Description: ------------ --- From manual page: http://www.php.net/imagick.forwardfouriertransformimage --- Calling this function results in: PHP Fatal error: Call to undefined method Imagick::forwardFourierTransformimage() Test script: --------------- $im = new Imagick ("compass_model.png"); $im->forwardFourierTransformimage (true); $im->writeImages ("fourier_test.png", false); Expected result: ---------------- Saving of magnitude/phase diagrams as "fourier_test-00.png", "fourier_test-01.png" Actual result: -------------- Fatal error PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 01:00:02 2026 UTC |
I should have said, checking for whether the method is available before hand is the appropriate thing to do if you are unsure whether the version of Imagick installed is going to have the fourier functions installed or not. $im = new Imagick ("compass_model.png"); if (method_exists($im, 'forwardFourierTransformimage') == false) { throw new Exception("Installed version of Imagick does not support Fourier functions."); } $imagick->forwardFourierTransformimage (true); $imagick->writeImages ("fourier_test.png", false);