Project:Image
Version:4.6.x-1.x-dev
Component:gd toolkit
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Version:<none>» 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.

#2

does your GD have JPEG support enabled? This si fairly easy to check... create a PHP file as follows:

<?php
phpinfo
();
?>

then check the "GD" section of that output to make sure JPEG reads "enabled".

#3

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

#4

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?

#5

Status:active» fixed

It works with 5.1 version

#6

Status:fixed» closed (fixed)
nobody click here