You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
don't throw exception when The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.
Copy file name to clipboardExpand all lines: src/gd_image.inc.php
+17-16Lines changed: 17 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,8 @@ function SetAntiAliasing($aFlg=true) {
107
107
imageantialias($this->img,$aFlg);
108
108
}
109
109
else {
110
-
JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.')
110
+
// don't throw an error
111
+
// JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.')
111
112
}
112
113
}
113
114
@@ -504,7 +505,7 @@ function StrokeBoxedText2($x,$y,$txt,$dir=0,$fcolor="white",$bcolor="black",
504
505
505
506
$x -= $rect_width/2;
506
507
$x += sin($dir*M_PI/180)*$height;
507
-
$y += $rect_height/2;
508
+
$y += $rect_height/2;
508
509
509
510
} elseif( $dir >= 270 && $dir <= 360 ) {
510
511
@@ -755,7 +756,7 @@ function imagettfbbox_fixed($size, $angle, $fontfile, $text) {
755
756
// box is sometimes coinciding with the first pixel of the text
756
757
//$bbox[0] -= 1;
757
758
//$bbox[6] -= 1;
758
-
759
+
759
760
// For roatated text we need to add extra width for rotated
760
761
// text since the kerning and stroking of the TTF is not the same as for
761
762
// text at a 0 degree angle
@@ -908,7 +909,7 @@ function _StrokeTTF($x,$y,$txt,$dir,$paragraph_align,&$aBoundingBox,$debug=false
908
909
909
910
if( $this->text_valign != 'basepoint' ) {
910
911
// Align x,y ot lower left corner of bbox
911
-
912
+
912
913
913
914
if( $this->text_halign=='right' ) {
914
915
$x -= $width;
@@ -935,7 +936,7 @@ function _StrokeTTF($x,$y,$txt,$dir,$paragraph_align,&$aBoundingBox,$debug=false
935
936
// This is only support for text at 0 degree !!
936
937
// Do nothing the text is drawn at baseline by default
0 commit comments