POV-Ray : Newsgroups : povray.general : The REAL image size Server Time
18 Nov 2024 11:19:01 EST (-0500)
  The REAL image size (Message 1 to 3 of 3)  
From: The Mad Hatter
Subject: The REAL image size
Date: 24 Aug 2002 18:40:01
Message: <web.3d680ad7a0dd952795946e520@news.povray.org>
Rightclicking and viewing properties gives a different image filesize than
viewing from the OS Console.

Now I understand a differece in rounding up, or chiping off digits, but
sometimes
the values are off by quite an amount.  And viewing the image in an image
manipulators gives me yet another different value.  Every app calculates an
image filesize different.  Is there a true method to this? I would image so.

Once entering the irtc I was afraid I was over the max K limit of my image.
3/4 applications said I was under, and the other said I was over the limit.
I am curious as to how the irtc calculates the size of images as well now.

I vote that this kind of system should be standardized!


Post a reply to this message

From: Paul Hustava
Subject: Re: The REAL image size
Date: 24 Aug 2002 19:34:21
Message: <9274B11B6pedro.wocka@204.213.191.226>
the### [at] hotmailcom (The Mad Hatter) wrote in 
<web.3d680ad7a0dd952795946e520@news.povray.org>:

>  Rightclicking and viewing properties gives a different image filesize than
>viewing from the OS Console.
>
>Now I understand a differece in rounding up, or chiping off digits, but
>sometimes
>the values are off by quite an amount.  And viewing the image in an image
>manipulators gives me yet another different value.  Every app calculates an
>image filesize different.  Is there a true method to this? I would image so.
>
>Once entering the irtc I was afraid I was over the max K limit of my image.
>3/4 applications said I was under, and the other said I was over the limit.
>I am curious as to how the irtc calculates the size of images as well now.
>
>I vote that this kind of system should be standardized!
>
>
>

It it standardized, you just need to know which one to follow :). There are a 
few elements at play, so you pick;

The Megabyte can be expressed as 1 million bytes or 1,048,576 (2^10) bytes.

Your real size difference will show when opening a compressed image format like 
PNG, GIF or JPG in a graphics application. The app must decompress the image 
into a more raw bitmap format in order to manipulate it and display it on the 
screen. 

When you ask the graphics app how large the file is, it will simply calculate 
bit depth per pixel * pixels wide * pixels high of the raw bitmap as displayed 
on the screen, and cached in memory. This size could be as much as 10 times the 
size of the file when it is stored on your harddrive or being electronically 
transferred.

I have a PNG file opened in Paint Shop Pro right now. PSP reports the filesize 
as 1.4 MegaBytes. Checking this file's properties from MS-Windows, Explorer 
says '205KB (209,926 bytes)' -- you see Microsoft decided to report both the 
2^10 bytes and the Million byte values.

I think IRTC is asking for the 2^10 flavor, in my example that would be the 
205KB


Post a reply to this message

From: Warp
Subject: Re: The REAL image size
Date: 25 Aug 2002 18:18:12
Message: <3d6957a3@news.povray.org>
The Mad Hatter <the### [at] hotmailcom> wrote:
>   Rightclicking and viewing properties gives a different image filesize than
> viewing from the OS Console.

  I don't want to sound rude, but I don't understand what do you mean.
Rightclicking where? Which "OS Console"? Is this related to POV-Ray at all,
or is it only related to what some OS shows you as file size? (If it's
not related to POV-Ray itself, the best group for this kind of discussion
is povray.off-topic).

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.