Cannot find any of the supported PHP image extensions - php

I am trying to run kcfinder with ckeditor and i am getting the message
Cannot find any of the supported PHP image extensions!
What is reason ?

It's probably looking for GD and/or ImageMagick extensions. Clearly you have neither installed.
The reason they're not installed will depend on who hosts your PHP environment. It seems likely that shared hosting providers may not have them enabled.

Related

How to configure imagick / ImageMagick on ipage?

Ipage says they are running ImageMagick 6.3.3 however, it is not running on the server and there is no way I can find how to enable it. They do not allow to configure any module from control panel.
I contacted support but they could not help saying, it is not 'their' product. Anybody can help setting up Imagick on ipage? I tried to edit php.ini file and reference to php_imagick.dll but that did not solve the problem.
iPage does not support Imagick in PHP
This is their official response after conctacting support
We have ImageMagick binaries. But it is not complied to PHP so IMAGICK
won't work. So, you will not be able to use IMAGICK as PHP built-in
class. You have to use the alternative "convert" utility. Please make
changes accordingly in the script so that it will work fine on our
servers.
So basically you have to use exec() in PHP to use the Imagemagick convert command. Also you cannot use convert command from a shell environment as for as I know.
But there is GD commands available on ipage and for the most part they would be enough for all graphic related functions. In fact in my case, I found that they were rather moreful.
The answer I got from iPage is that PHP Imagick is not available on the Essential Package. To get PHP Imagick I would need to sign up for VPS hosting which is more expensive. For now I am giong to ignore the recommendation from Wordpress to install PHP Imagick. I have installed the Wordpress "ImageMagick Engine" plugin and it is now working with no errors.

Lack of Heroku PHP GD setup for JPEG files causing issues

Heroku does not support GD setup for jpg. Because of this I am not able to create collage out of profile pics, which are only in jpg format. I am having the same issue as the below link.
http://groups.google.com/group/heroku/browse_thread/thread/5f0b169272dd075f/5926d2e6eace859c?utoken=sizyOCkAAAD0zGxoh6dI3732ocaO_CKc0UdN2a4MLXn0dn7f9oF9dw34Femrnx-0ZHcOkI9yXY0
How do I resolve this issue?
My alternative was to use imagick.so extension instead. See my reply #stackoverflow here for instruction how to get this extension up and running quickly. Let me know if this works (the few basic functions I tried are ok).
The official buildpack from Heroku doesn't list PHP. Strange.
Heroku does support ImageMagick. I ran in to the GD/JPG problem hosting a WordPress site, but it was easily fixed by installing the imagemagick-engine plugin. Using it from the command line works with the path /usr/bin . The PHP module is not installed.

Old php site not working on new IIS server, need to use GD library but can't figure it out

I have been developing our php based site on a development box that was set up when i started my new job a few months ago. I have just got a new dev box and am having some real trouble getting my IIS server to work with the site.
I am running windows 7 64bit and IIS7.
I get this error when trying to load the site:
Fatal error: Call to undefined function imagecreatefromgif() in filepath:// line:#
I have done some searching around and found that this particular function is part of the GD library and that i needed to enable it in the php.ini file. most sites were saying that i needed to uncomment this line extension=php_gd2.dll but it wasn't there, so i added it. I took the php_gd2.dll file from the old test box and put it in the folder specified as so
extension_dir ="C:\Program Files (x86)\PHP\v5.2\ext"
I should point out that I am using php5.2 by necessity, we use a library called ezpdf to create pdfs and it contains hundreds of references to magic_quotes_runtime the old dev box was actually running php5.0 but i couldnt find anything earlier than 5.2, and as far as i can tell the magic quotes things should be an issue before php5.3.
Anyway, using the php manager in IIS7, i can see that php_gd2.dll is enabled, however if i look at phpinfo() i can see no reference to GD.
No matter what i try i get the same error, does anyone have any ideas!?
GD isn't JUST the .dll you load into php. there's a fair chunk of other code in other libraries that the php .dll references. You'll need the entire GD setup for it to work in IIS, not just the one php_gd.dll.
References to magic_quotes_runtime by themselves aren't 'bad' - a lot of libraries have to handle running under older PHP versions where magic_quotes is enabled by default, and do appropriate compensation for that fact. If ezpdf is, however, recreated magic_quotes behavior, then it's definitely time to upgrade versions or switching to something better. magic_quotes is deprecated for a reason, and re-enabling it in any way/shape/form is a bad idea.

imagecreatefromstring() [function.imagecreatefromstring] No JPEG support in this PHP build

I am getting error mentioned in the subject when trying to upload in wordpress admin interface.
My server's running nginx with php-fpm, PHP version is 5.3.0.
I've googled quite some regarding this problem but I wasn't able to find any solution. Is there a way to enable JPG support for GD without recompiling the PHP completely? (I've tried to follow that path but I can't get ./configure with all the needed to complete properly and I just don't have time to fix all the errors with all the libraries).
Thanks!
No. You'll have to recompile php.

What are the odds of GD or ImageMagick already being part of a client's PHP install?

I'm working on a package which includes rescaling of images in PHP. For image rescaling, PHP has the GD and ImageMagick libraries. Are those likely to be part of a given client's PHP install already?
Is there a "default" install of PHP, for that matter? By default, are either GD or ImageMagick included?
If neither is installed, should I have some sort of horrible fallback position of reading, rescaling, and saving GIFs, JPGs, and PNGs, or is it simple to add GD or ImageMagick to an existing install?
i can't remember when i've last seen a lamp hosting provider without GD. the imagemagick extension is not that widespread. if they run their server themself, they really should be able to activate one of it or both. in your place i'd build the full functionality with GD and a (probably reduced) imagemagick fallback. if they got neither, show them the basic concepts of the wheel and/or fire, they should be grateful.
PS: i encountered providers that deactivated certain GD functions (computationally too intensive on a shared hosting environment), like imagerotate and imagefilter.
GD is the easiet library to include in php.. it is "only" an extension, mainly included in php packages... the only operation needed is to activate the extension.
Regarding ImageMagik, it is more complecated, since the php imageMagik library is only an interface for the image magik software.
Using imageMagik require both software and php library installed
It is reasonable to expect the client to have the capability or an understanding of how to add the library. Are you selling software or servers maintenance?
If you're going for the whole "ease of use" angle, you'll want to package php with your app (and GD installed already), of which I'm not sure the legality. (but there's probably some way to get it done)
90% GD - 10% ImageMagick
Windows - Yes
Linux/MAC - No (but fairly easy to install)

Categories