Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
ju CreditAttribution: ju commentedI 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
Comment #2
dopry CreditAttribution: dopry commented@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.
Comment #3
micahw156@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!
Comment #4
glass.dimly CreditAttribution: glass.dimly commentedThis 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
Comment #5
dopry CreditAttribution: dopry commentedComment #6
lee20 CreditAttribution: lee20 commentedI saw a similar issue. Turns out that upper case letters in the filename was causing the issue. Didn't investigate as to why...