Closed wdebusschere closed 10 years ago
When did it last work successfully for you? There has been very little change in actual image manipulation for some time so best to double check if GD is installed, if you have a tmp directory etc.
Any errors at all? Or just 'doesn't' work? On 30 Oct 2014 21:58, "wdebusschere" notifications@github.com wrote:
I have JIT 1.31 with Symphony 2.51 and resizing, cropping of PNG doesn't work anymore.
— Reply to this email directly or view it on GitHub https://github.com/symphonycms/jit_image_manipulation/issues/94.
Brendo,
Error: GET http://localhost/~user/www.mysite.com/image/2/0/70/5/images/logo-cms.png 500 (Internal Server Error)
The strange thing is that it works on some sites i have, and on 2 it doesn't. Same results localhost - shared hosting. Probably not a bug, but something of my setup.. Will keep you posted.
HTACCESS:
RewriteRule ^image\/(.+)$ extensions/jit_image_manipulation/lib/image.php?param=$1 [B,L,NC]
OR
RewriteRule ^image/(.+.(jpg|gif|jpeg|png|bmp))$ extensions/jit_image_manipulation/lib/image.php?param=$1 [L,NC]
GD Support enabled GD Version bundled (2.1.0 compatible) GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 9 compatible WBMP Support enabled XBM Support enabled
Are you able to see any error messages? Or just a white page? You can comment out these lines to try and get some more information displayed to you.
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost/~user/www.mysite.com/image/2/0/70/5/images/logo-cms.png".
Fatal error: Call to undefined function imagecreatefrompng() in /Users/user/Sites/www.mysite.com/extensions/jit_image_manipulation/lib/class.image.php on line 113
Brendo, Is there a solution? Thank you
Are you on windows ?
OS X
Ok seems like you do not have png enabled. You must recompile php.
Please note: To enable support for png add --with-png-dir=DIR . Note, libpng requires the zlib library, therefore add --with-zlib-dir[=DIR] to your configure line.
What about zlib?
So, it's something to do with the local setup not recognizing PNG's or that PHP is compiled with PNG. Unfortunately it's not my speciality so I'm not sure how to assist. I assume this isn't code related, so rolling back to an older version of Symphony or JIT won't fix the issue. It seems like there is something wrong with the PHP or server setup.
Can you confirm that the image actually exists and it's not eating a Symphony 404 page? Can you also confirm that your local webserver is setting the mime type correctly for PNG images?
Have you tried installing the imagick
extension for PHP? Is there anything you can see that singles out this environment compared to your other environments where the code is working?
Have you seen this link? Are you running Yosemite?
Dear all, Fatal error: Call to undefined function Intervention\Image\imagecreatefrompng() on default Apache / Yosemite installation. Solved by installing PHP 5.6 Thank you.
I have JIT 1.31 with Symphony 2.51 and resizing, cropping of PNG doesn't work anymore.