Home > Backend Development > PHP Tutorial > imagerotate用不了,php版本5.2.17,怎样解决?

imagerotate用不了,php版本5.2.17,怎样解决?

WBOY
Release: 2016-06-23 14:11:57
Original
979 people have browsed it

imagerotate用不了,php版本5.2.17,怎样解决?

我网上查过是因为 此函数仅在与 GD 库捆绑编译的 PHP 版本中可用。

要重新编译一下php

但我是的环境是在windows2003下的,那怎样办?


回复讨论(解决方案)

用不了了是什么意思?

$url = 'http://avatar.profile.csdn.net/C/9/7/1_beambeam.jpg';$im = imagecreatefromstring(file_get_contents($url));$im1 = imagerotate($im, 30, 0);imagejpeg($im1);
Copy after login

不能执行?

如果是本地的图片,那怎样处理

我知怎样处理了

1、如果可以自定义环境,去 这里下个window别的版本
2、如果不能自定义环境,使用一些提供云图像处理处理吧,例如 云图像处理

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template