Index: CHANGELOG.txt =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/CHANGELOG.txt,v retrieving revision 1.23.2.41 diff -u -p -r1.23.2.41 CHANGELOG.txt --- CHANGELOG.txt 3 Feb 2009 01:49:48 -0000 1.23.2.41 +++ CHANGELOG.txt 13 Feb 2009 01:05:22 -0000 @@ -7,6 +7,7 @@ Img_Assist x.x-x.x, xxxx-xx-xx Img_Assist 5.x-1.x, xxxx-xx-xx ------------------------------ +#247992 by Grugnog2, sun: Fixed file permissions of server-generated files. #293909 by alienbrain, sun: Fixed always adding thumbnail when image preset width or height is unspecified. #322731 by sun: Fixed improper use of t() in module install file. Index: img_assist.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/img_assist.module,v retrieving revision 1.68.2.52 diff -u -p -r1.68.2.52 img_assist.module --- img_assist.module 3 Feb 2009 01:49:48 -0000 1.68.2.52 +++ img_assist.module 13 Feb 2009 01:03:42 -0000 @@ -1216,12 +1216,15 @@ function _img_assist_build_derivatives(& if ($info['width'] > $size['width'] || $info['height'] > $size['height']) { $source = file_create_path($node->images[IMAGE_ORIGINAL]); $destination = _image_filename(basename($source), $key, FALSE); - if (!image_scale($source, file_create_path($destination), $size['width'], $size['height'])) { + $destination_path = file_create_path($destination); + if (!image_scale($source, $destination_path, $size['width'], $size['height'])) { drupal_set_message(t('Unable to create %label image', array('%label' => $size['label'])), 'error'); } else { + // Set default file permissions for webserver-generated files. + @chmod($destination_path, 0664); $node->images[$key] = $destination; - _image_insert($node, $key, file_create_path($destination)); + _image_insert($node, $key, $destination_path); } } else {