Good php script for uploading profiles pictures and generates different sizes?
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
精彩评论