Feature #14490
closedLinux file permissions of scaled images on some Linux-Installations
0%
Description
Server: Apache, PHP (as CGI), SuExec with UMASK 077
scaled images are crated with rw------ permissions. The Apache-Server could not read this files and Browsers receive 404er. Images are not displayed in Browser.
Reason: $GLOBALS['TYPO3_CONF_VARS']['BE']['fileCreateMask'] is ignored in t3lib_stdgraphic.
I habe fixed this problem an attachet the patch
(issue imported from #M677)
Files
Updated by Michael Stucki over 19 years ago
Thanks, Frank. You're right, this should be changed as well. However you forgot one function. See my patch.
Updated by Frank Agerholm about 19 years ago
This Problem exists for GIFBUILDER-Images too.
I think its a Problem with t3lib_stdGraphic::output(). Please include the t3lib_div::fixPermissions()-call in this function.
Updated by Michael Stucki about 19 years ago
I don't think so! The output() function calls imageMagickExec() which calls t3lib_div::fixPermissions right after executing ImageMagick.
If there's really a problem it might be caused by the gif_compress() function: I checked "convert file file" which doesn't change the existing permissions (which is correct!).
However, I'm not sure if imageGif() might change them when writing the new file (happens if you enable gif_compress but don't have LZW support in your ImageMagick).