Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm running 4.5.0 and GD2. My image gallery will not upload jpegs, when I try to create content > image or directory upload them it will not work. It seems to have no problem with .gifs. When I try to upload a .jpg it is similar to how others describe their problems in this forum.
Nothing happens at all, no logs no blank page. It just attempts to connect to the site and then just shows Done.
Comments
Comment #1
autowitch CreditAttribution: autowitch commentedProblem seen in 4.6.0 as well.
Appears to come from a problem in calling the toolkit's (gd in this case) resize function. I'm still researching this.
Comment #2
walkah CreditAttribution: walkah commenteddoes your GD have JPEG support enabled? This si fairly easy to check... create a PHP file as follows:
phpinfo();
then check the "GD" section of that output to make sure JPEG reads "enabled".
Comment #3
profpek CreditAttribution: profpek commentedhi running drupal 4.6.3 with php5 and gd2. could nt post anything except png and gifs. till a came a cross a post mentioning jpeg not jpg. opened up image.inc and there is the following line
$extensions = array('1' => 'gif', '2' => 'jpg', '3' => 'png');
simply change to
$extensions = array('1' => 'gif', '2' => 'jpeg', '3' => 'png');
and everything workedhope this is of some help
Pek
Comment #4
Texta CreditAttribution: Texta commentedHi
I've got the same problem. Tried profpeck's suggestion of making that change in image.inc, but I still can't upload jpgs.
From phpinfo...
PHP Version 4.3.11
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Ideas?
Comment #5
guardian CreditAttribution: guardian commentedIt works with 5.1 version
Comment #6
(not verified) CreditAttribution: commented