TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Image manipulation library for PHP 5.3

83 点作者 avalanche123超过 13 年前

9 条评论

FuzzyDunlop超过 13 年前
This has appeared at just the right time, now I'm re-working my project's image manipulation classes. The PHP GD library functions are a nightmare for readability.<p>I'll be having a little play about with what I intend to implement and if it works out well I'll likely implement it in my project proper!<p>&#62; “Why didn’t he keep width and height as simple integer parameters in every method that needed those?” or “Why is x and y coordinates are an object called Point?”<p>Seems to me that PHP needs to turn its own primitives into objects so they can be type hinted. Trying to figure out which of a dozen number validation functions to use is an utter clusterfuck at the best of times.
chrismsnz超过 13 年前
It's really good to see some well engineered PHP software coming out.<p>For my projects I've moved out to Python after having dealt with legacy trash like Wordpress, Google's api libraries, over-engineered frameworks like ZF and lets just say the less said about Propel the better.<p>Code like this, Symfony 2, Doctrine 2, Lithium etc... are a breath of fresh air. Their obviously written by a group of talented devs and after cutting ties with legacy PHP versions &#60; 5.3 the future of "modern" PHP is looking bright!
brador超过 13 年前
Looks great, but...I clicked on "examples" and expected examples of output in addition to code examples...Please add these if you have time.
评论 #3141855 未加载
snorkel超过 13 年前
Whats\With\All\The\Backslashes? Am I only one seeing that in the examples?
评论 #3141197 未加载
评论 #3142012 未加载
评论 #3141198 未加载
评论 #3141196 未加载
评论 #3141195 未加载
the_mitsuhiko超过 13 年前
There goes my unique flask-extension documentation style. :(
评论 #3141340 未加载
ipsin超过 13 年前
Just curious, is there a reason you chose GD over imlib2?<p>I've used both and I think I prefer imlib2 for flexibility and breadth, and there's already at least one imlib2 binding for PHP: <a href="http://pp.siedziba.pl/" rel="nofollow">http://pp.siedziba.pl/</a>
评论 #3142457 未加载
评论 #3141861 未加载
sunsu超过 13 年前
Besides being a great library, its an excellent example of well written PHP code.
bingaling超过 13 年前
Looks very nice, a worthy successor to <a href="http://wideimage.sourceforge.net/" rel="nofollow">http://wideimage.sourceforge.net/</a><p>I look forward to using it.
johnny22超过 13 年前
i am so glad to be reminded of this. Now i just need to implement a filter for assetic at some point.<p>Assetic still relies on opti{png,jpeg} which i'm sure works pretty well, but also requires one to call out to an external program.