I don't see any function for this in GD; it looks like you'll have to either
find a third-party library or do it pixel-by-pixel, something like
?php
$width = imagesx($img);
$height = imagesy($img);
for ($j = 0; $j $height; $j++) {
$left = 0;
$right = $width-1;
how would i flip an image horizontally using the GD library in PHP?
Noah
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
2 matches
Mail list logo