ImageMagick或GD Library用于图像大小调整和缩略图创建? [英] ImageMagick or GD Library for image resizing and thumbnail creation?

查看:172
本文介绍了ImageMagick或GD Library用于图像大小调整和缩略图创建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用其他人编写的图像大小调整类来调整图像大小或创建缩略图,这里是我一直使用的类的链接。

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.white-hat- web-design.co.uk/articles/php-image-resizing.php

我猜图像GD库对分辨率或文件有一些限制图像的大小,它适用于低分辨率图片大小调整(低于1024px),但如果我尝试大致上传高分辨率jpeg图像(即3400px X 2200px),它不会调整大小,

I guess image GD library has some limitations for the resolution or the file size of images, it works fine for low resolution picture resizing(below 1024px) but it does not resize if I try to upload the high resolution jpeg image (i.e 3400px X 2200px) roughly,

调整图像大小的目的是为了开发图片库应用程序。

The purpose for resizing the image is i am developing a picture gallery application.

有没有办法可以绕过图片gd库的限制(我正在共享托管系统文件的任何更改,我的主机不同意)。 ?

Is there any way I could bypass the limit put on by the image gd library (I am on shared hosting any changes to the system file my host wont agree). ?

或者是我应该为此目的使用imageMagick(我的主机安装了imageMagick)?我不是很熟悉使用imageMagick是否有任何内置的插件或类可以用于此目的?

Or is is that I should be using the imageMagick for this purpose(my host have installed imageMagick)? I am not so familiar with using imageMagick is there any built in plugin or class I could use for this purpose?

是否有任何可以执行我的jquery插件的推荐工作?

Is there any reccomendation for any jquery plugin that could do my work?

谢谢

推荐答案

试试 imagecopyresized 功能,

内置,

不需要重新编译(你的共享托管会很开心),

并提供几乎简单的图像处理功能

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是客户端javascript库,

它对图像处理没有帮助

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

这篇关于ImageMagick或GD Library用于图像大小调整和缩略图创建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆