note 58745 added to function.imagecopyresampled

From: Date: Mon, 14 Nov 2005 22:21:51 +0000
Subject: note 58745 added to function.imagecopyresampled
Groups: php.notes 
Request: Send a blank email to php-notes+get-98559@lists.php.net to get a copy of this message
If you have a bug that imagecopyresampled is completely ignoring srcX and srcY (a known and closed bug - http://bugs.php.net/bug.php?id=12780) you can ofcourse apply two operations to do the same. E.g., instead of saying ImageCopyResampled($dst_img, $src_img, 0, 0, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH); you can say ImageCopyResampled($tmp_img, $src_img, -$srcX, -$srcY, "BUG","BUG", $orgW, $orgH, $orgW, $orgH); ImageCopyResampled($dst_img, $tmp_img, 0, 0, "BUG","BUG", $dstW, $dstH, $srcW, $srcH); which has the same effect but is twice as slow and blurry. you may replace "BUG","BUG" with anything you like without sideeffects :) $2c, *pike ---- Manual Page -- http://www.php.net/manual/en/function.imagecopyresampled.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58745 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58745&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58745&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58745&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58745&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58745&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58745&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58745&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58745&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98559) next »