<![CDATA[ [fixed 1.0 pre2.1] fixed FCKEditor, Thumbnail fixed, modx TP2 - My Forums]]> https://forums.modx.com/thread/?thread=4171 <![CDATA[Re: [solution] fixed FCKEditor, Thumbnail fixed, modx TP2]]> https://forums.modx.com/thread/4171/fixed-1-0-pre2-1-fixed-fckeditor-thumbnail-fixed-modx-tp2#dis-post-25147 rethrash Jun 01, 2005, 08:22 AM https://forums.modx.com/thread/4171/fixed-1-0-pre2-1-fixed-fckeditor-thumbnail-fixed-modx-tp2#dis-post-25147 <![CDATA[ [fixed 1.0 pre2.1] fixed FCKEditor, Thumbnail fixed, modx TP2]]> https://forums.modx.com/thread/4171/fixed-1-0-pre2-1-fixed-fckeditor-thumbnail-fixed-modx-tp2#dis-post-25146
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]]>
pcwacht Jun 01, 2005, 04:15 AM https://forums.modx.com/thread/4171/fixed-1-0-pre2-1-fixed-fckeditor-thumbnail-fixed-modx-tp2#dis-post-25146