ImageMagick or GD Library for image resizing and thumbnail creation?

对着背影说爱祢 提交于 2019-12-02 13:09:53

Try the imagecopyresized function,
which is built in,
need not to re-compile (your share hosting will be happy),
and provide almost simple feature for image processing

Jquery is clients javascript library,
it does not help with image processing

The problem is that your memory is getting full if you try to resize a very large image with GD library.

You sould use ImageMagick. use the following code

exec("source -resize size destination");

So if you want to resize logo.gif with a maximum size of 64x64 and rename it to resize_logo.gif

exec("convert logo.gif -resize 64x64  resize_logo.gif");

For more information follow this link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!