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

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.

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.

Cannot find any of the supported PHP image extensions

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.

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.

Need help to access my imagick library.. I have the path

Tonight I messaged justhost.com to provide me with the path to the newest version of Imagick they have.
They sent me this:
Hi,
The latest version which we have is
6.4.4.
The path to the ImageMagick is
/usr/local/ImageMagick-6.4.4/
Please let me know if you need more
help. Thank you.
-- Kind regards, Tony Dreyfuss
Just Host www.justhost.com
How do I use it or upgrade my php?
my phpinfo(); says I have ImageMagick 6.2.8 10/20/10
Thanks!
If phpinfo says you have it, and the libraries are installed, then you need to look up the imagemagick functions on php.net. If it's available but not installed as a PHP library, you can (maybe) run it with exec(), depending on the host's settings. If neither of those work, get a better hosting plan!

Categories