-
- 19 Posts
FCKEditor, Thumbnail fixed
The Thumbnail.php in manager/media/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/Commands uses "imagecreatetruecolor" to make thumbs. This function exists in GD 2.0.1 or higher
For those who have GD1 could change the "imagecreatetruecolor" into "imagecreate".
Open manager/media/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/Commands/Thumbnail.php
search for : $thumb=imagecreatetruecolor(96,96);
change into: $thumb=imagecreate(96,96);?
I have made another change wich tests the thumb after creating:
? ?$thumb=imagecreatetruecolor(96,96);
if (!$thumb) {
? ? $thumb=imagecreate(96,96);
}
This worked for me.
John
Ditto the thanks from your other find. Keep it up!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me