声明的代码是从URL复制图像,请让我知道如何通过250x250重新调整图像大小。
所需尺寸:
宽度=250高度=250
<?php
file_put_contents('tmp.jpg', file_get_contents('http://static.adzerk.net/Advertisers/3603.jpg'));
?>
问候,
一个教程,了解如何使用类来调整大小、缩放和保存图像…@http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/