jquery - PHP: Image upload, thumbnails, specific crops -
I have created a script which implements jCrop to crop an image before displaying it. In CMS the client needs to be able to upload the logo, which are fitted to a specific size as determined by our designer.
So I think I'm looking for something that can crop, resize, and save the original, a specific version of the size and possibly other thumbnail size.
Can anyone recommend a good solid and beautiful bullet proof method for this? So far, I am using the GD and I am going to the Zaccorp Cord to create an image. This is causing anarchy for the customer, because they are uploading large images and small people and obviously the results are not correct and there are all kinds of issues.
I thought that a class could be an idea, and I found, though, I have not really seen it yet.
Image uploads are now the mainstream feature of such sites, what are the suggestions for controlling this potential black hole of user input?
Currently I & lt; 100kb and bmp, gif, jpg and png are valid on upload
There is a lot on this link there The only solid image is the Moneypeed class:
Excerpt from the page given above:
This PHP class can be used to manipulate a variety of images.
can:
- Reset images to fit the width or height given by keeping the original aspect ratio (or not)
< Li> Picture horizontally flip Or are stacked- the taking rotate images Enge, fill in the blanks with an empty color
- Protect all actions transparency!
- Examines all the errors for the class, the source, and the target file so that you do not have to worry about
class, GIF, JPEG and PNG formats Supports loading and saving images in
The code is very well documented and a good document and example is for you to start
Comments
Post a Comment