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

benshell’s picture

This 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?

jippie1948’s picture

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

RobRoy’s picture

Project: Image Assist » Image
Component: Code » image.module
Category: support » bug
Priority: Normal » Critical

I am getting this as well. Can upload GIF just fine. JPG gives the following errors but still uploads the fullsize image. Hrmm...any ideas?

Unable to create thumbnail image 
Unable to create preview image 
The selected file /afs/.dmz.domain.com/prj/web/domain/dev_files could not be copied. 
The selected file /afs/.dmz.domain.com/prj/web/domain/dev_files could not be copied. 
Unable to create img_assist_properties image 

Marking this as critical and moving to the image module. Please correct me if I'm wrong.

RobRoy’s picture

Title: Uploading/converting jpeg files with img_assist doesn't work » JPEG thumbnail creation does not work on upload, but full-size image is uplaoded

Better title...

RobRoy’s picture

Priority: Critical » Normal

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

L. Allen Poole’s picture

I'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

askike’s picture

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

Axel_V’s picture

I'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?

Axel_V’s picture

When I add
AddType x-mapp-php5 .php
to 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

Duplika’s picture

I'm running PHP 4.4.4 and I have the same error.

RobRoy’s picture

Make sure that you have PHP compiled with the proper JPEG library. Read #5 http://drupal.org/node/74292#comment-120086.

drewish’s picture

Status: Active » Fixed

i'm assuming this has been resovled

Anonymous’s picture

Status: Fixed » Closed (fixed)