i find that this is happening with some files..

reasons maybe
1. file too large
2. IE used to upload..

cld u pls suggest how to get over this..

also is there a way to limit size of file upload in imagefield...so imagecache can work with smaller files.

thanks

Comments

Version:5.x-1.3» 5.x-1.x-dev

I have the same problem:

thumbnails are not generated correctly for some images,
although everything is ok with others.

and at the same time size of these images is not bigger than others,

"Unlucky" images aren't oversized, and all of the images were uploaded at the same way.

here example:
http://sl-art.ru/catalog?op0=AND&filter0[0]=15&op1=OR

error messages on page http://sl-art.ru/sites/all/files/imagecache/t/sites/all/files/artp/img_5...

* warning: getimagesize(sites/all/files/imagecache/t/sites/all/files/artp/img_5380.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/u70551/sl-art.ru/www/sites/default/modules/imagecache/imagecache.module on line 233.
* warning: filesize() [function.filesize]: stat failed for sites/all/files/imagecache/t/sites/all/files/artp/img_5380.jpg in /home/u70551/sl-art.ru/www/sites/default/modules/imagecache/imagecache.module on line 236.
* warning: fopen(sites/all/files/imagecache/t/sites/all/files/artp/img_5380.jpg) [function.fopen]: failed to open stream: No such file or directory in /home/u70551/sl-art.ru/www/includes/file.inc on line 562.

O, sorry,

I've found discussion about it here http://drupal.org/node/124226

@gurukripa, Set the max image size on the imagefield and the image files will be scaled down on upload...
I normally set the constraints to the largest imagesize I plan to display here.. I've found 1280x1024 to be a reasonable make size and is about 1/4 of the pixels found in the images created by my point and shoot.

Set the max image size on the imagefield and the image files will be scaled down on upload...

@dopry: I've just spent about 20 minutes looking for a place to set this. Is it available in 1.x, or is this a 2.x setting? I'm building a site for a guy who struggles with changing file sizes, and it would be great if I could force it to happen on upload.

Please advise. Thanks!

This fix assumes you are using the imagefield module with CCK.

One sets imagefield max size under administer--> content types --> (click your custom, cck image type) -->manage fields --> image (click configure) --> then change max resolution as suggested.

Good luck!
Jeremy

Status:Active» Closed (fixed)

I saw a similar issue. Turns out that upper case letters in the filename was causing the issue. Didn't investigate as to why...