将图片大小减小到3.8 Kb [英] Reduce Image size to be 3.8 Kb

查看:125
本文介绍了将图片大小减小到3.8 Kb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要将许多jpg图像的大小更改为3.8 KB.

我尝试了EncoderParameter epQuality = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, val);
但是我无法使图像达到Kb的特定大小.

任何人都可以帮忙吗?

解决方案

您不能指定JPEG的结果二进制大小.进行所需操作的唯一方法是逐渐降低质量"值,并一遍又一遍地保存图像,直到图像符合您的规格.这样做的问题是您可以降低画质,以至于无法识别图像. /> 或者,通过电子邮件将其发送给自己,这也提供了减少的选项.

图片质量是您要付出的代价.

修剪不重要的材料或背景的边缘的另一个提示.


您好,我需要一个示例代码来减小尺寸,但要降低实际质量,例如facebook.如果有的话,SDK,还是代码.任何人都可以帮助我.?


Hi all,

I need to change the size of many jpg images to be 3.8 kilobytes.

I tried the EncoderParameter epQuality = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, val);
But I am not able to make the image reach a specific size in Kb.

Can anyone help?

解决方案

You cannot specify the resulting binary size of the JPEG. The only way to do what you want would be to incrementally reduce the Quality value and resave the image over and over again until it meets your specification. The problem with this is that you could reduce the Quality so low as to make the image unrecognizable.


Upload the image to PAINT and reduce it, then save it as the smaller file.
Or, email it to yourself, that also gives a reduction option.

Picture quality is the price you pay though.

Another hint to to trim away the edges of the unimportant material or background.


Hello, I need a sample code to reduce the size but actual quality like facebook. If any SDK, took or code..? any body can help me.?


这篇关于将图片大小减小到3.8 Kb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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