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

autowitch’s picture

Version: » 4.6.x-1.x-dev
Component: Code » gd toolkit

Problem 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.

walkah’s picture

does 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".

profpek’s picture

hi 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 worked

hope this is of some help

Pek

Texta’s picture

Hi

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?

guardian’s picture

Status: Active » Fixed

It works with 5.1 version

Anonymous’s picture

Status: Fixed » Closed (fixed)