ImageMagick or GD Library for image resizing and thumbnail creation?

前端 未结 2 1530
终归单人心
终归单人心 2021-01-29 09:42

I had been using the image resize class written by someone else to resize images or to create the thumbnails, here is the link to the class I had been using.

http://www.

相关标签:
2条回答
  • 2021-01-29 10:26

    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

    0 讨论(0)
  • 2021-01-29 10:35

    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

    0 讨论(0)
提交回复
热议问题