Uploadify and Image Compression

前端 未结 2 762
生来不讨喜
生来不讨喜 2021-01-03 16:19

I am using Uploadify on one of my client\'s web sites to allow them to upload a large amount of pictures at once to their photo gallery.

I am seeing issues lately.

相关标签:
2条回答
  • 2021-01-03 16:56

    You won't be able to compress JPG images much using zip or similar algorithms - they are already close to optimum in themselves. You'd have to resize them on client side. For that, see e.g.

    • Image resize before upload

    • jquery + flash: looking for plugin that resize images before upload

    • Image resizing client-side with javascript before upload to the server

    0 讨论(0)
  • 2021-01-03 16:59

    Image resize is not the same as image compression.

    Difference between resize and compression:

    When you compress you get an image with same dimensions at lower quality.
    When you resize you are getting same quality at different dimensions.


    Anyway, I developed a javascript library called JIC to solve that problem. It allows you to compress jpg and png on the client side 100% with javascript and no external libraries required!

    You can try the demo here : http://makeitsolutions.com/labs/jic and get the sources here : https://github.com/brunobar79/J-I-C

    Hope you like it.

    0 讨论(0)
提交回复
热议问题