PHP error "Call to undefined method... getImageOrientation"
Posted: 2014-02-22T21:39:01-07:00
Hi - I'm sorry if this is the wrong forum, I'm very new to all of this (PHP, Linux, Imagick).
I'm attempting to use the jQuery File Upload widget from here: https://github.com/blueimp/jQuery-File-Upload
It uses Imagick to display thumbnails of files to be uploaded from a web form. I'm in the early stages of integrating it into a page on my website, but an error is thrown when I attempt to upload a file:

When I look at the PHP.net documentation for the getImageOrientation method it says at the top of the page "PECL imagick 2.0.0". I don't know whether this is related to the "imagick module version 2.0.0-alpha" shown in my screenshot. But if it is, perhaps the "alpha" version didn't include this function? I'm having a difficult time understanding what the cause might be otherwise.
If - from the command line of the Linux server - I type:
The system response is:
I'd be very grateful if someone could suggest how I might proceed from here! Thank you in advamce
I'm attempting to use the jQuery File Upload widget from here: https://github.com/blueimp/jQuery-File-Upload
It uses Imagick to display thumbnails of files to be uploaded from a web form. I'm in the early stages of integrating it into a page on my website, but an error is thrown when I attempt to upload a file:
Google doesn't return any results when I search for this error. I'm running an old Ubuntu 7.10 server install with PHP "Version 5.2.3-1ubuntu6.5". The PHP Info pages shows this information about IMagick:Call to undefined method Imagick::getImageOrientation()

When I look at the PHP.net documentation for the getImageOrientation method it says at the top of the page "PECL imagick 2.0.0". I don't know whether this is related to the "imagick module version 2.0.0-alpha" shown in my screenshot. But if it is, perhaps the "alpha" version didn't include this function? I'm having a difficult time understanding what the cause might be otherwise.
If - from the command line of the Linux server - I type:
Code: Select all
sudo apt-get install php5-imagick
Code: Select all
Reading package lists... Done
php5-imagick is already the newest version
0 upgraded, 0 newly installed, 0 to remove and 80 not upgraded