1: <?php
2:
3: 4: 5: 6:
7:
8:
9: $_zp_graphics_optionhandlers[] = new lib_NoGraphics();
10: 11: 12: 13:
14:
15: class lib_NoGraphics {
16:
17: function __construct() {
18:
19: }
20:
21: 22: 23: 24: 25:
26: function getOptionsSupported() {
27:
28: }
29:
30: function canLoadMsg() {
31: return '';
32: }
33:
34: }
35:
36: if (!function_exists('zp_graphicsLibInfo')) {
37:
38: $_lib_GD_info = array();
39: $_lib_GD_info['Library'] = 'None';
40: $_lib_GD_info['Library_desc'] = '<p class="error">' . gettext('There is no PHP Graphics support.') . '</p>';
41:
42: if (DEBUG_IMAGE)
43: debugLog($_lib_GD_info['Library_desc']);
44:
45: function zp_imageGet($imgfile) {
46: return false;
47: }
48:
49: function zp_imageOutput($im, $type, $filename = NULL, $qual = 75) {
50: return false;
51: }
52:
53: function zp_createImage($w, $h) {
54: return false;
55: }
56:
57: function zp_imageFill($image, $x, $y, $color) {
58: return false;
59: }
60:
61: function zp_imageColorTransparent($image, $color) {
62: return false;
63: }
64:
65: function zp_copyCanvas($imgCanvas, $img, $dest_x, $dest_y, $src_x, $src_y, $w, $h) {
66: return false;
67: }
68:
69: function zp_resampleImage($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {
70: return false;
71: }
72:
73: function zp_imageUnsharpMask($img, $amount, $radius, $threshold) {
74: return false;
75: }
76:
77: function zp_imageResizeAlpha(&$src, $w, $h) {
78: return false;
79: }
80:
81: function zp_imageCanRotate() {
82: return false;
83: }
84:
85: function zp_rotateImage($im, $rotate) {
86: return false;
87: }
88:
89: function zp_imageDims($filename) {
90: return false;
91: }
92:
93: function zp_imageIPTC($filename) {
94: return false;
95: }
96:
97: function zp_imageWidth($im) {
98: return false;
99: }
100:
101: function zp_imageHeight($im) {
102: return false;
103: }
104:
105: function zp_imageMerge($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {
106: return false;
107: }
108:
109: function zp_imageGray($image) {
110:
111: }
112:
113: function zp_imageKill($im) {
114: return false;
115: }
116:
117: function zp_colorAllocate($image, $red, $green, $blue) {
118: return false;
119: }
120:
121: function zp_writeString($image, $font, $x, $y, $string, $color) {
122:
123: }
124:
125: function zp_drawRectangle($image, $x1, $y1, $x2, $y2, $color) {
126: return false;
127: }
128:
129: function zp_graphicsLibInfo() {
130: global $_lib_GD_info;
131: return $_lib_GD_info;
132: }
133:
134: function zp_getFonts() {
135: return $_gd_fontlist;
136: }
137:
138: function zp_imageLoadFont($font = NULL, $size = 18) {
139: return false;
140: }
141:
142: function zp_imageFontWidth($font) {
143: return false;
144: }
145:
146: function zp_imageFontHeight($font) {
147: return false;
148: }
149:
150: function imageBlurGD($imgCanvas, $imgCanvas2, $radius, $w, $h) {
151:
152: }
153:
154: function zp_imageFromString($string) {
155: return false;
156: }
157:
158: }
159: ?>