Get close to making a small system of uploading pictures
But the uploader on the size of the picture is not too much concept, do not know the original camera 4000*3800 the solution like the Web page display has a problem, upload the image to others on the page to see, and a lot of
So want to ask, there is no class can do the following steps ...
1. Receive Jpg/png/bmp (uploader may be ignorant of all types may be used)
2. Check that if the picture width is greater than 1000 or the height is greater than 1000, the compression of equal ratio to wide or high is less than 1000px
(Skip directly if width and height are less than 1000)
3. Compression optimizes the size of a piece of capacity
Is there a class in this area that can be featured? Or is there an image upload plugin for this category? The charge plug-in recommendation is OK
Thank you
Reply to discussion (solution)
Previously written classes, http://blog.csdn.net/fdipzone/article/details/9316385
Previously written classes, http://blog.csdn.net/fdipzone/article/details/9316385
It's a little different from the function I'm trying to use.
But very very valuable, and then if you have time to write a picture class, absolutely need, first thank you