PHP upload pictures When there is a common class can do to do more than compression?

Source: Internet
Author: User
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
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.