If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
If you are using apache2, you are advised to add ppa:ondrej/apache2
If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline or ppa:ondrej/nginx
then
sudo apt-get install imagemagick php{version number with no brackets}-imagick