我们如何重用jpg文件大小? [英] How we reduse jpg file size?

查看:179
本文介绍了我们如何重用jpg文件大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我刚刚开始学习vb.net,请告诉我如何在加密时减小jpg文件的大小,并在解密时以相同的大小恢复它.请帮助.

Hi,
I just started learning vb.net please tell me how we reduce jpg file size at Encrypt time and at it restore at same size when we Decrypt it.please Help.

推荐答案

图像加密和解密 [

您必须创建一个新每次更改jpeg的质量时都会生成图像,但是一旦降低jpeg的质量就无法提高质量.您可以更改压缩值(较高的补偿=较低的质量),但是图像将保持质量下降.您需要维护不变的原始图像,并至少要对其进行处理,直到对新的(压缩的)图像的质量满意为止.

您可以尝试序列化图像,然后查看生成的文件是否明显小于图像的合并文件大小.如果尝试此操作,将所有图像放在ImageList中并仅序列化列表可能会有所帮助.

仍然存在加密问题,因此您必须对生成的文件进行加密.
You have to create a new image each time you change the jpeg quality, but you cannot increase the quality once it''s been reduced. You can change the compression value (higher comp=lower quality) but the image will remain degraded. You''ll need to maintain an unchanged original image and work from it at least until you''re satisfied with the quality of the new (compressed) image.

You might try serializing the images instead and see if the resulting file is significantly smaller than the combined file sizes of the images. If you try this, it''d likely be beneficial to place all the images in an ImageList and just serialize the list.

That still leaves the encryption issue, so you''d have to encrypt the resulting file.


您所说的加密或解密是什么意思?您需要用Google搜索代码,但可以通过降低其质量来缩小jpg.一旦质量低劣,就无法再使其高质量.
What do you mean by encrypt or decrypt ? you need to google for the code, but you can make a jpg smaller by lowering it''s quality. Once it''s low quality, you can''t make it high quality again.


这篇关于我们如何重用jpg文件大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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