You are right,
the problem is not me but my customers...the site is managed by a group of people/editors, and sometimes one of them uploads an image with a space in the filename...
I read in the forum and in the Github that this problem should have been fixed adding the line
return str_replace(' ','%20',$cacheUrl);
but in my case it doesn't seem to work, if I give a look at MODx log I read this:
[2011-11-02 09:32:39] (ERROR @ /site/index.php) [phpThumbOf] Could not generate thumbnail: http://localhost/site/images/notizie/new site.jpg - Debug: Array
(...
[26] => GetImageSize("http://localhost/site/images/notizie/new site.jpg") failed in file "phpthumb.class.php" on line 3078
...
[31] => GetImageSize(http://localhost/site/images/notizie/new site.jpg) FAILED with error "" in file "phpthumb.class.php" on line 1409
[32] => GetImageSize(http://localhost/site/images/notizie/new site.jpg) failed in file "phpthumb.class.php" on line 1556
[36] => ImageMagick failed with message (error : Unknown IO error
convert: no decode delegate for this image format `/tmp/magick-XXhjLq6H' @ error/constitute.c/ReadImage/532.
convert: no data returned `http://localhost/site/images/notizie/new site.jpg' @ error/url.c/ReadURLImage/226.
convert: missing an image filename `jpeg:/var/www/site/pThumbxl1Tij' @ error/convert.c/ConvertImageCommand/2970.) in file "phpthumb.class.php" on line 1963
...
I've tested it in different server, always linux based, now I'm testing it locally with Ubuntu server,
PHP Version 5.3.5-1ubuntu7.2
I wonder if I could add a prefilter, like:
if there is a space in the name DON'T use phpthumb, otherwise go on
Do you think this could be a solution?