[Digikam-users] jpeg compression

wjarosz at ucsd.edu wjarosz at ucsd.edu
Wed Aug 22 01:04:18 BST 2007


You are computing the uncompressed size of your image incorrectly.
What you have computed is the number of bits needed to store the
image. You most likely want the number of bytes. There is an 8-fold
difference. For an uncompressed 24 bit image, each pixel takes up 3
bytes, therefore:

3264 x 2448 x 3 = 23,970,816 bytes

If digikam reports a compressed size of 3,974,526, then that's a 6x
compression factor, which sounds reasonable.

-w

On 8/21/07, Francesco Scaglioni <fgs at epulse.net> wrote:
> Hi,
>
> > This suggests, that maybe something like 70 was used inside of the camera?
> >
> > From the number of pixels Nx * Ny, the number of bytes needed
> > to store the image (without) compression should follow from
> > Nx * Ny * (8+8+8), i.e. one Byte per R, G, B.
>
> On a resolution of 3264 x 2448 I get jpeg file sizes of between
> 2.2 and 4 MB per image (subject matter depending).
>
> 3264 x 2448 x 24 = 191,766,528
>
> For a particular image of size 3,974,526 (size and
> resolution stated by digikam) the compression facto does not
> make sense to me (in that I don't fully understand ).  A
> factor of 48 cannot be possible : surely.
>
> Any suggestions ?
>
> Regards,
>
> Francesco
>
> ---------------------------------------------------------------------
> -
> -
> -
> -
> -
> -
> The information in this e-mail and any attachments is confidential
> and
> is
> intended for the attention and use of the named addressee(s).  It
> must
> not
> be disclosed to any other person  without our authority.  If you are
> not
> the intended recipient, or a person responsible for delivering it to
> the
> intended recipient or are aware that this e-mail has been sent to
> you
> in
> error, you are not authorised to and must not disclose, copy,
> distribute,
> or retain this message or any part of it.
>
> We sweep all outgoing messages for the presence of computer viruses.
> However, we cannot accept any responsibility for any loss or damage
> to
> your systems due to viruses or malicious code not detected.
>
> The statements and opinions expressed in this message are those of
> the
> author and do not necessarily reflect those of the organisations
> within
> the Cornwall & Isles of Scilly Health Community.
>
> This email may be disclosed under the Freedom of Information  Act
> 2000
> or
> the Environmental Information Regulations 2004.
> ---------------------------------------------------------------------
> -
> -
> -
> -
> -
> -
> _______________________________________________
> Digikam-users mailing list
> Digikam-users at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-users
>



More information about the Digikam-users mailing list