获取图像的压缩比 [英] Get compression ratio of image

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

问题描述

我使用LibJPEG来读取JPEG压缩的图片。有没有办法获得不变的图像的当前压缩率?

I use LibJPEG to read JPEG compressed images. Is there a way to get the current compression ratio of the unchanged image?

推荐答案

0-100?

这不是存储的 - 它被用作图像编码的指南,关于波浪的准确度,然后丢弃。在任何JFIF头结构中没有任何字段。据我所知,这个数字对编码器意味着什么没有正式的定义,所以你不能精确地确定任何给定数字的效果。

That isn't stored - it's used as a guide for the image encode as to how accurate the waves should be, and it's then discarded. There's no field for it in any of the JFIF header structures. As far as I can see there's no formal definition of what this number means across encoders and so you can't precisely determine the effects of any given number anyway.

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

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