开发者

Good php script for uploading profiles pictures and generates different sizes?

开发者 https://www.devze.com 2023-03-05 17:11 出处:网络
i want to implement a php script on my registration form in order to let my users upload their images but i also want after the upload generate 3 files, one 50x50px, one 150x150px, and the original si

i want to implement a php script on my registration form in order to let my users upload their images but i also want after the upload generate 3 files, one 50x50px, one 150x150px, and the original size. Can any one suggest 开发者_JS百科me a good script to do this? Thanks!


Why not use something like phpThumb or timthumb to generate on the fly? They use caching so you don't keep regenerating the images. This way you aren't confined to 3 sizes either.


You'll need to use something like timthumb image crop. see project here http://code.google.com/p/timthumb/


and storing them as blob or base64 in a database is also good

you can also use the php module gdlib or imagemagick

0

精彩评论

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