Doc #65777 [Opn->Csd]: Unconditional recommendation not to use imagecreate is misleading

From: Date: Tue, 01 Oct 2013 17:11:32 +0000
Subject: Doc #65777 [Opn->Csd]: Unconditional recommendation not to use imagecreate is misleading
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10342@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65777&edit=1 ID: 65777 Updated by: aharvey@php.net Reported by: herbmunson at Q dot com Summary: Unconditional recommendation not to use imagecreate is misleading -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: n.a. PHP Version: Irrelevant -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2013-10-01 17:11:26] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=331628 Log: Expand on why imagecreate() isn't such a smart idea nowadays. Fixes doc bug #65777 (Unconditional recommendation not to use imagecreate is misleading). ------------------------------------------------------------------------ [2013-09-28 03:27:03] herbmunson at Q dot com Description: ------------ --- From manual page: http://www.php.net/function.imagecreate --- I'm putting this here instead of a comment under on the doc page because of all the warnings about what not to put there. Indeed, this seems like a better place. Reload my patch? It is a tiny, tiny bug in the documentation. This is where you said you wanted such stuff. No, it isn't fixed, because it is there, in the documentation. Where it will probably remain. If one does as you unconditionally suggest, and use imagecreattruecolor instead of imagecreate in the process of taking a small image from a larger png, you will end up with a "truecolor" image and no color map, and it is unlikely that is what you want. One also wastes a lot of time in figuring this out. Such suggestions should offer at least a modicum of rationalization. This one should be conditional. Since I'm unsure why you make the suggestion, i can't come up with an appropriate condition. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65777&edit=1

« previous php.doc.bugs (#10342) next »