Uploading gif files work fine.
WHen I upload a jpeg file I get the following message:
* warning: imagecreatefromjpeg(): '/homepages/28/d41073845/htdocs/drupal/sites/www.tact.co-cornucopia.org/files/images/temp/bewerkt.JPG' is not a valid JPEG file in /homepages/28/d41073845/htdocs/drupal/includes/image.inc on line 288.
* Unable to create thumbnail image
* warning: imagecreatefromjpeg(): '/homepages/28/d41073845/htdocs/drupal/sites/www.tact.co-cornucopia.org/files/images/temp/bewerkt.JPG' is not a valid JPEG file in /homepages/28/d41073845/htdocs/drupal/includes/image.inc on line 288.
* Unable to create preview image
* The selected file /homepages/28/d41073845/htdocs/drupal/sites/www.tact.co-cornucopia.org/files could not be copied.
* The selected file /homepages/28/d41073845/htdocs/drupal/sites/www.tact.co-cornucopia.org/files could not be copied.
* warning: imagecreatefromjpeg(): '/homepages/28/d41073845/htdocs/drupal/sites/www.tact.co-cornucopia.org/files/images/marian bewerkt.JPG' is not a valid JPEG file in /homepages/28/d41073845/htdocs/drupal/includes/image.inc on line 288.
* Unable to create img_assist_properties image
The jpeg file itself is uploaded though and presnet in the /images and /images/temp folder.
What can I do about it?
Looking forwards to hearing from you.
Kind regards,
JanPieter
Comments
Comment #1
benshell commentedThis would be a image.module or a image.inc (core) issue since img_assist doesn't do the actual resizing. Can you confirm this by adding your jpeg image through create content/image instead of img_assist?
Comment #2
jippie1948 commentedThanks for the fast response!
I tested it and you got it right. When I tried the way you sugested, it displayed the following errors:
* warning: imagecreatefromjpeg(): '/homepages/28/d41073845/htdocs/drupal/sites/www.tact.co-cornucopia.org/files/images/temp/marian bewerkt_0.JPG' is not a valid JPEG file in /homepages/28/d41073845/htdocs/drupal/includes/image.inc on line 288.
* Unable to create thumbnail image
* warning: imagecreatefromjpeg(): '/homepages/28/d41073845/htdocs/drupal/sites/www.tact.co-cornucopia.org/files/images/temp/marian bewerkt_0.JPG' is not a valid JPEG file in /homepages/28/d41073845/htdocs/drupal/includes/image.inc on line 288.
* Unable to create preview image
* The selected file /homepages/28/d41073845/htdocs/drupal/sites/www.tact.co-cornucopia.org/files could not be copied.
* The selected file /homepages/28/d41073845/htdocs/drupal/sites/www.tact.co-cornucopia.org/files could not be copied.
I suppose that I now need to take my issue to the Image module.
Sorry to have bothered you.
Kind regards,
JanPieter.
Comment #3
RobRoy commentedI am getting this as well. Can upload GIF just fine. JPG gives the following errors but still uploads the fullsize image. Hrmm...any ideas?
Marking this as critical and moving to the image module. Please correct me if I'm wrong.
Comment #4
RobRoy commentedBetter title...
Comment #5
RobRoy commentedI think this is an issue to do with the GD Image Library and PHP not being compiled with JPEG image support. The server I was getting this on didn't have jpeg-6b installed and PHP wasn't configured with include --with-jpeg-dir=/usr/local (or the correct dir).
See http://us2.php.net/gd.
Marking normal as this won't affect proper configurations of PHP.
Comment #6
L. Allen Poole commentedI'm seeing the same problem with the 4.6 version of 2/06, and I'm at a loss as to what's causing it.
http://drupal.org/node/73986
Comment #7
askike commentedThis appears to be an issue/bug in php that has been fixed in php5. See http://bugs.php.net/bug.php?id=29878. I had this problem and it went away when I began using php5. It seems like others using 1and1 have had this problem too. Instructions for using php5 at 1and1 are at: http://faq.1and1.com/scripting_languages_supported/php/9.html.
Comment #8
Axel_V commentedI'm one of those 1and1 users. My server runs PHP 4. The 1and1 article that askike refers to implies that 1and1 users have the choice between PHP 3, 4, 5. In order to make it work correctly the file should be renamed to .PHP5. The file that is causing problem in that case is includes/image.inc. I obviously cannot just rename it in image.php5. So what should I do?
Comment #9
Axel_V commentedWhen I add
AddType x-mapp-php5 .phpto the htaccess file, I get error messages like
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /homepages/18/d126859316/htdocs/newSiteDevelopment/Drupal/modules/acidfree/acidfree.module on line 1431.where my galleries used to be
Comment #10
Duplika commentedI'm running PHP 4.4.4 and I have the same error.
Comment #11
RobRoy commentedMake sure that you have PHP compiled with the proper JPEG library. Read #5 http://drupal.org/node/74292#comment-120086.
Comment #12
drewish commentedi'm assuming this has been resovled
Comment #13
(not verified) commented