![](/img/trans.png)
[英]Issue with creating an image with PHP GD `imagecreatefromstring` function
[英]PHP GD, imagecreatefromstring( ); how to get the image dimensions?
通常我使用imagecreatefromjpeg()
然后使用getimagesize()
,但是使用Firefox 3我需要绕过这个不同的东西。 所以现在我使用imagecreatefromstring()
,但我现在如何检索图像尺寸?
imagesx()
和imagesy()
函数似乎也适用于使用imagecreatefromstring()
图像。
没错! 我刚才在互联网上找到了答案:)
对于那些仍然感兴趣的人:
$image = imagecreatefromstring($img_str);
$w = imagesx($image);
$h = imagesy($image);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.