Gdtest

From Review or Discard at Will
Jump to: navigation, search

gd as in graphics not the deity dam...

CatAssTrophy.jpg


cat ass trophy

gd is working now.

the gd.so wasn't loading. I added;

 
cd /etc/php-5.6
ln -s /etc/php-5.6.sample/gd.ini .

phpinfo()

gd

GD Support	enabled
GD Version	bundled (2.1.0 compatible)
FreeType Support	enabled
FreeType Linkage	with freetype
FreeType Version	2.8.0
T1Lib Support	enabled
GIF Read Support	enabled
GIF Create Support	enabled
JPEG Support	enabled
libJPEG Version	6b
PNG Support	enabled
libPNG Version	1.6.31
WBMP Support	enabled
XPM Support	enabled
libXpm Version	30411
XBM Support	enabled
Directive	Local Value	Master Value
gd.jpeg_ignore_warning	0	0

syntaxhighlight testing

I enabled ImageMagic.

These examples are pulled from the mediawiki pages. Note the lack of color or line numbers in the python example. Using examples from this page https://www.mediawiki.org/wiki/Extension:SyntaxHighlight

#include <stdio.h>
int main()
{
	printf ("Hello world!");
	return 0;
}


 3 def quickSort(arr):
 4 	less = []
 5 	pivotList = []
 6 	more = []
 7 	if len(arr) <= 1:
 8 		return arr
 9 	else:
10 		pass

Should have color and line numbers

Hmm something else to ponder...

1 def quickSort(arr):
2 	less = []
3 	pivotList = []
4 	more = []
5 	if len(arr) <= 1:
6 		return arr
7 	else:
8 		pass