如何从数据库调整缩略图图像的大小? [英] how to resize thumbnail images from database?
问题描述
我需要它本身需要在本周之前汇总一个项目请回复我一个简单的代码来调整图像..
i need its very urjent i need to sumbit a project before this week please reply me a simple code for resize an image..
推荐答案
(...)请回复我一个简单的代码来调整图片大小。
(...) please reply me a simple code for resize an image.
看看:
php-manual / imagecopyresampled [ ^ ]
Look at:
php-manual/imagecopyresampled[^]
(...)来自数据库的缩略图?
(...) thumbnail images from database?
如果您已将缩略图字符串存储在数据库中,则可以如下所述转换字符串:
php-manual / imagecreatefromstring [< a href =http://php.net/manual/de/function.imagecreatefromstring.phptarget =_ blank> ^ ]
备注:使用xampp-version 1.8.2 +
In case you have stored the thumbnail-string in the db you can convert the string as described here:
php-manual/imagecreatefromstring[^]
remark: the gd library is installed for sure with xampp-version 1.8.2+
这篇关于如何从数据库调整缩略图图像的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!