GDlib udskriver tekst
Jeg har hentet et Resize script her:http://www.netcoders.dk/sources.asp?mode=view_source&tech_id=2&forum_type=1&id=1800
Og gør brug af funktionen example.rezise.php:
# include the imageresize() and imagethumbnail() classes
include("class.imageresize.php");
# instantiate the class imageresize()
$rz = new imageresize();
# set source image to "test.jpg"
$rz->source("test.jpg");
# set width to 300. maintain aspect ratio is default true, so height will be adjusted automatically.
$rz->new_width = 300;
# resize the image and output it directly to the browser
$rz->resize();
Det der så sker er, at den udskriver en masse tegn.. Hvad kan dette skyldes?
--- vist herunder --
ÿØÿàJFIFÿþ;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 90 ÿÛC ÿÛC ÿÀ»ú"ÿÄ ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚâãäåæçèéêòóôõö÷øùúÿÚ ?üÆE*H#ê)Í´çžœŠ¹äõÚ)†=¤ePAX€OÒŒ)#iè:f Ö@Ð}ÅÚ1€ W,síO_½À©~ÊHÈ ‘ÔÒ¬
-- osv ---