Uploadify和图像压缩 [英] Uploadify and Image Compression

查看:151
本文介绍了Uploadify和图像压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在客户的一个网站上使用Uploadify,以允许他们一次将大量图片上传到他们的照相馆.

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.

我最近看到了问题.他们似乎上传了大照片(3 MB及以上).我想知道,是否有可能在客户端进行压缩(减小其大小),而不是在服务器上进行压缩(就像facebook那样). 我知道我可以轻松地在服务器上完成此操作,但是我现在正在另一个项目上工作,我希望在那里能够上传大量照片.处理所有这些都需要大量的CPU时间.所以我想,我想问一下客户端处理.

I am seeing issues lately. They seem to upload large photographs (3 MB and above). I am wondering, is it possible to compress (reduce their size) on the client side, instead of doing it on the server (just like facebook does it). I know I could easily do it on the server, but I am working on another project right now, where I am expecting a large flow of photo uploads. It would require significant amount of CPU time to process them all. So I thought, I'd ask about the client side processing.

谢谢.

推荐答案

您将无法使用zip或类似算法大量压缩JPG图像-它们本身已经接近最佳状态.您必须在客户端调整它们的大小.为此,请参见

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.

jquery + flash:寻找可以在上传前调整图片大小的插件

调整图片大小的客户端-将javascript端上传到服务器之前

这篇关于Uploadify和图像压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆