|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-21 08:39 UTC] tony2001@php.net
[2007-05-22 08:37 UTC] pajoye@php.net
[2007-05-22 09:47 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
Description: ------------ imagegd2 does not produce valid gd2 image if used under output control Reproduce code: --------------- $strBinary = file_get_contents('test.jpg'); $resHandle = imagecreatefromstring($strBinary); ob_start(); imagegd2($resHandle); $strBinary2 = ob_get_clean(); imagecreatefromstring($strBinary2); >>>imagecreatefromstring($strBinary2) issues warning but following works fine: $strBinary = file_get_contents('test.jpg'); $resHandle = imagecreatefromstring($strBinary); imagegd2($resHandle, 'test.gd2'); $strBinary2 = file_get_contents('test.gd2'); imagecreatefromstring($strBinary2); Expected result: ---------------- nothing Actual result: -------------- second call to imagecreatefromstring issues function.imagecreatefromstring: Passed data is not in 'GD2' format