Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1

TOPIC: Imagick?

Imagick? 1 week 6 days ago #1

  • mboucher
  • mboucher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 83
I also run a wordpress site and it keeps saying Imagick is not installed or not enabled.
First of all is it necessary for webtrees?
second my web hosting company says it is installed and ready to use on my sites. It is version 6.8.9-9 according to the company and I am running under php 7.3.17.
But under server config I do not see it listed.
What action if any would you suggest?
Thanks for any advice.
Pretty much a novice and I do NOT have access to the servers or a control panel.
Michael Boucher
php7.3
mySQL5.7
www.mike-boucher.com/MikeFamilyFiles (version 2.04)
www.mike-boucher.com/BBunchwt (version 2.04)

Please Log in or Create an account to join the conversation.

Imagick? 1 week 6 days ago #2

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
> First of all is it necessary for webtrees?

webtrees can use two different graphics libraries to create thumbnail images - GD and ImageMagick.

GD is very much slower than ImageMagick, so webtrees will use ImageMagick in preference.
Also, IIRC, GD uses PHP memory, whereas IM uses system memory.
So if you have a low PHP memory limit, you'd want IM.

But if ImageMagick not installed, it will use GD.

Thumbnail images are cached, so the slowdown will only happen the first time you view a thumbnail.

> my web hosting company says it is installed

Look at the "Server information" section of your control panel.

Does it have a section for ImageMagick?
Does include JPEG and PNG in the "supported formats"?
This is what you should see:



If no, then you might want to pass this information back to your server support.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Attachments:

Please Log in or Create an account to join the conversation.

Imagick? 1 week 5 days ago #3

  • mboucher
  • mboucher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 83
Greg:
I did and they said it was working, but I needed to SSH into the server to install it on my site and modify a .ini file to run it?
Since I am on a shared server rather than a dedicated one SSH is not permitted?
I mentioned the version number in my post earlier. Is that version compatible with webtrees 2.03 and php 7.3?
My guru suggested that either webtrees can't use that version or some other compatibility problem exists.
Not sure I want to pay for a dedicated server. Has anyone else had this problem? We are hosted by IONOS, formerly 1&1.
In my checking with Wordpress they said that some hosting companies are much better than others about updating imagick.
Michael Boucher
php7.3
mySQL5.7
www.mike-boucher.com/MikeFamilyFiles (version 2.04)
www.mike-boucher.com/BBunchwt (version 2.04)

Please Log in or Create an account to join the conversation.

Imagick? 1 week 4 days ago #4

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
> I did and they said it was working, but I needed to SSH into the server to install it on my site and modify a .ini file to run it?
> Since I am on a shared server rather than a dedicated one SSH is not permitted?

Some shared servers allow SSH logins.

If your tech-support told you to do this, then presumably you do have permission...

Find you php.ini file.

There may well be more or more lines of the form

extension="XXXXX.so"

Add a new line with the same format (path, filename extension, etc.) like this

extension="imagick.so"
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Imagick? 1 week 4 days ago #5

  • mboucher
  • mboucher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 83
Apparently I do not have SSH access.
I cannot access file named php.ini
Any other way to get Imagick to run on my site?
Thanks
Michael Boucher
php7.3
mySQL5.7
www.mike-boucher.com/MikeFamilyFiles (version 2.04)
www.mike-boucher.com/BBunchwt (version 2.04)

Please Log in or Create an account to join the conversation.

Last edit: by mboucher.

Imagick? 1 week 4 days ago #6

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
> Apparently I do not have SSH access.

Can you re-open the ticket where they told you to do this?

> Any other way to get Imagick to run on my site?

No. PHP extensions are part of the server configuration. They cannot be installed/enabled by applications (such as webtrees) at run-time.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Imagick? 1 week 4 days ago #7

  • mboucher
  • mboucher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 83
Greg:
They simply referred me to their help articles.
Here is their explanation of how to use Imagick:

For Linux Web Hosting packages, IONOS Performance hosting and Managed Dedicated Server

ImageMagick is a collection of applications for creating, editing and converting image files. In Web Hosting-packages and on IONOS Managed Servers ImageMagick is available in form of the application convert under /usr/bin/convert already preinstalled. Use the convert command to convert, scale, blur, crop, and more file formats for images. Access to convert is via scripts or direct shell commands.

Examples of applications
Simple conversion, e.g. a JPG file to a PNG file:
convert example.jpg example.pngbash
Convert an image file while maintaining the PNG target file size, e.g. Reduce 50%:
convert example.jpg -resize 50% example.pngbash
Convert and resolve the PNG target file to e.g. Set 480x95 pixels:
convert -size 480x95 example.jpg example.png

Is this the way webtrees 2.03 calls Imagick functions?

Here are their instructions for installing a later version (I assume higher than 6.8.9-9) to work with php 7.3.:

For Managed Dedicated Servers (which I am not)

Learn how to install the latest version of ImageMagick on the managed server.

Please note: An older version of ImageMagick is pre-installed on the managed servers. The installation is only necessary if you are dependent on the latest version.

ImageMagick is a library that allows PHP programs to manipulate graphics, for example. ImageMagick can handle up to 100 different graphic formats, including.jpg,.png,.tif etc.

Step 1
Log in to your managed server via SSH.

Step 2
Download the source code of ImageMagick with the command wget. Example:

wget www.imagemagick.org/download/ImageMagick.tar.gzbash
step 3
Unpack the archive with the following command:

tar xfvz ImageMagick.tar.gz bash
Step 4
Use the cd command to switch to the directory with the source code, here is an example:

cd ImageMagick-6.7.4-1/ bash
Step 5
Use the pwd command to display the absolute path of the directory. This will be needed later for the installation, the output looks like this:

/kunden/homepages/30/d339922114/htdocs/ImageMagick-6.7.4-1 bash
Step 6
Use the ./configure command to prepare the program for compilation. Since you do not have access rights to the directory specified in the script, use the --prefix option to install ImageMagick to a subdirectory of your home directory. Here is an example of entering the./configure command:

./configure --prefix=/kunden/homepages/30/d339922114/htdocs/ImageMagickbash
Step 7
Enter the command make. If there is no error message, enter the command make install at the next prompt.

Step 8
The installation is complete, you can now access the most frequently used functions of ImageMagick in your scripts by calling /ImageMagick/bin/convert.

So you see as a novice there is no way I can access the above to load a new version or to get the Imagick php module to be activated. Do you have any thoughts on how this should work otherwise? I assume that the version they have installed on my shared server is not compatible with webtrees (or Wordpress) code.
Thanks for taking the trouble to read this. My guru says the only way to get Imagick is to rent a dedicated server which is way over my retiree's hobby budget.
Michael Boucher
php7.3
mySQL5.7
www.mike-boucher.com/MikeFamilyFiles (version 2.04)
www.mike-boucher.com/BBunchwt (version 2.04)

Please Log in or Create an account to join the conversation.

Imagick? 1 week 4 days ago #8

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929

Here is their explanation of how to use Imagick:


ImageMagick is many things.

1) It is a library of utilities for manipulating images.
2) It is a command-line utility (that uses the library).
3) It is a PHP extension (that uses the library).

The instructions above show how to build (1) and (2) from the source code.

Firstly, this is not how most poeple install it. I've never needed to do this.
Most people do not build it from source code.
They download a pre-built release of it using their system's package manager.

Depending on your version of linux, you'd run a command similar to this.
apt install imagemagick

Secondly, the instructions ignore (3) - which is the thing you actually need.
To install the PHP-Imagick extension, you'd run a one-line command similar to this
pecl install imagick

Do you have any thoughts on how this should work otherwise?


If you have a web-hosting package, your provider should install this for you. Either by default (it's a commonly used part of PHP), or when asked.

Alternatively, many web-hosting packages provide a control panel - where you can choose a version of PHP, select PHP extensions, etc.

If you don't have such a control panel, and your tech-support won't help, then I guess you are out of luck.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Imagick? 1 week 2 days ago #9

  • mboucher
  • mboucher's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 83
Thanks for all your comments Greg.
The hosting service said I had 2 options if I wanted to use Imagick, Pay more for a dedicated server package or hire an expert from them to install it on the server I am using. I thanked them for their time and hung up.
So IONOS (formerly 1&1) does NOT support Imagick on their shared server packages (unless you pay for a consultant).
So problem solved. GD is fine.
Michael Boucher
php7.3
mySQL5.7
www.mike-boucher.com/MikeFamilyFiles (version 2.04)
www.mike-boucher.com/BBunchwt (version 2.04)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum