Cannot upload .jpgs

tyman - February 27, 2005 - 21:33
Project:Image
Version:4.6.x-1.x-dev
Component:gd toolkit
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

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.

#1

autowitch - April 20, 2005 - 23:46
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.

#2

walkah - April 28, 2005 - 15:46

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

profpek - August 16, 2005 - 15:33

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

Texta - August 27, 2005 - 04:08

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

guardian - May 18, 2007 - 10:07
Status:active» fixed

It works with 5.1 version

#6

Anonymous - June 1, 2007 - 10:32
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.