开发者

Wordpress Plugin Dev Upload Image

i am currently developing a wordpress image slider plugin. However i have hit a wall..

I want to be able to allow people who are using the plugin to upload images and have then crunch to the sizes set in my functions.php file just like the media->add new uploader does

It would only be one image at a time so i dont need the uploader to be flash.. but i do need it to perform the crunching that wordpress does automatically...

alternatively if there is a way that the user could crop the image to any dimension that would be better.. 开发者_高级运维ie.. kind of like the profile picture selection tool on facebook..

if anyone can point me in the right direction i would really appreciate it..

thank you in advance

haxxxton


Welcome to SO!

Instead of saving the image to various sizes on upload, I'd recommend you upload and keep the original and simply resize/crop to your needs when you display it by using some form of thumbnail script.

Tim thumb comes to mind. Easy to setup and use : http://code.google.com/p/timthumb/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜