Skip to content

SANParks.org Forums

View unanswered posts | View active topics






Post new topic Reply to topic  Page 1 of 2
 [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Relations between Kb and Pixels
Unread postPosted: Fri Nov 20, 2009 1:53 pm 
Offline
Distinguished Virtual Ranger
Distinguished Virtual Ranger
User avatar

Joined: Thu Jan 13, 2005 9:02 pm
Posts: 17091
Location: mind in SA, body in The Netherlands
Anybody knows
Is there any relation between Kb and Pixels
Say 15 kb (required in a avatar on the forum) is how many pixels?

_________________
Submit your Images


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Fri Nov 20, 2009 2:04 pm 
Offline
Junior Virtual Ranger
Junior Virtual Ranger
User avatar

Joined: Tue May 19, 2009 2:15 pm
Posts: 1895
Location: Johannesburg - too far from the closest Sanpark
I think Duco might know more?

_________________
The 'mite formerly known as joshilewis

FGASA Level 1 Guide

Glen Reenen TR

15-18 June: Berg-en-dal


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Fri Nov 20, 2009 2:24 pm 
Offline
Distinguished Virtual Ranger
Distinguished Virtual Ranger
User avatar

Joined: Thu Jan 13, 2005 9:02 pm
Posts: 17091
Location: mind in SA, body in The Netherlands
I wonder :hmz:

_________________
Submit your Images


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Fri Nov 20, 2009 2:52 pm 
Offline
Junior Virtual Ranger
Junior Virtual Ranger
User avatar

Joined: Mon Feb 21, 2005 10:16 pm
Posts: 57
Location: JHB
Hi Bert

The simple answer no not really, because images can be compressed (eg.jpeg) or uncompressed (eg tiff) however there is a relationship because the more pixels an image contains the larger the file size but no exact way to say an image X size will be Y pixels.

_________________
The popular argument for destroying rather than protecting snakes is lack of knowledge, and yet there is no valid excuse for this - Austin James Stevens


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Wed Dec 02, 2009 4:48 pm 
Offline
Junior Virtual Ranger
Junior Virtual Ranger
User avatar

Joined: Thu Jul 27, 2006 3:52 pm
Posts: 228
Location: Worcester South Africa
Hi

I believe there is a fixed relationship between pixels and size.
I square pixel equals more or less 2,9 bites.
Therefore an image of say 1835 x 2514 pixels = 4613190 square pixels will be a 13,3 Mb file if it is a .bmp file.

Jpeg are however a compressed format and even at 100% jpeg quality, that same file can be as small as 4,5Mb. I think that the actual image determines the actual compression that Jpeg can achieve and the final file size will therefore vary.

The relationship therefore only apply to .bmp files. I suspect that the RAW files will also follow this rule.

_________________
The Creator is bigger than His creation!

My latest trip report to Addo during June 2009:
http://www.sanparks.org/forums/viewtopic.php?f=27&t=34300


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Wed Dec 02, 2009 6:12 pm 
Offline

Joined: Wed Jun 10, 2009 8:51 am
Posts: 2159
HoepHoep, I may have it wrong, but I disagree.

I work on uncompressed jpeg images that are in the region of 15MB, the same TIFF file is 50MB. The jpeg image will vary in MB depending on colour, contrast and density of the image. The TIFF however will stay constant if the dimensions remain the same.

Yes, very confusing. :doh: :?


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Wed Dec 02, 2009 7:47 pm 
Offline
User avatar

Joined: Mon May 04, 2009 9:32 am
Posts: 817
Location: Northwold with KTP on my mind...
Another thing to remember is the ammount of colour information each pixel carries. A darker picture has much less information than a well lit or even overexposed picture. I did a quick test now. I took a picture with my camera in RAW. The ONLY thing I did was to almost completely over expose it and save it as a JPEG. I then took the same RAW file and almost completely under exposed it.

The over exposed picture was 4.7MB in file size and the under exposed picture was under 1MB. Both were 4288 x 2848 pixels at 300 DPI.

:hmz:

_________________
KNP: 14 June: Skukuza Camping
15 -21 June: Letaba Camping


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Wed Dec 02, 2009 7:51 pm 
Offline

Joined: Wed Jun 10, 2009 8:51 am
Posts: 2159
No relationship between MB and pixels! :thumbs_up:


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Wed Dec 02, 2009 8:04 pm 
Offline
User avatar

Joined: Mon May 04, 2009 9:32 am
Posts: 817
Location: Northwold with KTP on my mind...
Sprocky wrote:
No relationship between MB and pixels! :thumbs_up:


I know and agree with that, been working with pics long enough... :thumbs_up:

Just something interresting I shared.

_________________
KNP: 14 June: Skukuza Camping
15 -21 June: Letaba Camping


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Thu Dec 03, 2009 10:22 am 
Offline
Junior Virtual Ranger
Junior Virtual Ranger
User avatar

Joined: Thu Jul 27, 2006 3:52 pm
Posts: 228
Location: Worcester South Africa
Sorry guys, you haven't convinced me!

From searching the net the following seems to be the correct answer:
File size = (number of pixels) X (bit depth / 8)

But, this is not true of jpgs.
Remember that a jpg file with max quality settings, ie no compressing, is still a compressed file format! That means that all jpgs are smaller than the above size and always of a lower quality than a raw, bmp or tiff file. jpg-Compression use a complicated algorithm that makes it indeed impossible to predict the file size, even at max quality.

@ Switchback. What was the size of your raw file? Some cameras do 12 bit depth (per channel) raw files and the raw file size for your photo will then be 4288 x 2848 x 12 X 3 / 8 = 54MB. (photo's use red, green and blue (rgb) ie 3 channels)

If you save your raw file as a tiff file the size will be 18MB (tiff uses 8 bit per channel). This will be the size regardless of the colour information of the photo.

jpgs are however totally unpredictable.

Johan

_________________
The Creator is bigger than His creation!

My latest trip report to Addo during June 2009:
http://www.sanparks.org/forums/viewtopic.php?f=27&t=34300


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Thu Dec 03, 2009 10:47 am 
Offline
User avatar

Joined: Mon May 04, 2009 9:32 am
Posts: 817
Location: Northwold with KTP on my mind...
HoepHoep,

I'm quickly looking at two RAW files at the moment. Both are as you said, 12-bit depth and 4288 x 2848 Image Size according to the Metadata. The one file is 11MB and the other 9.73 MB. If my RAW files were round about 54MB each, I'd have to buy a ton more memory cards! :big_eyes:

_________________
KNP: 14 June: Skukuza Camping
15 -21 June: Letaba Camping


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Thu Dec 03, 2009 10:56 am 
Offline
Junior Virtual Ranger
Junior Virtual Ranger
User avatar

Joined: Thu Jul 27, 2006 3:52 pm
Posts: 228
Location: Worcester South Africa
I am confused :? :D

_________________
The Creator is bigger than His creation!

My latest trip report to Addo during June 2009:
http://www.sanparks.org/forums/viewtopic.php?f=27&t=34300


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Thu Dec 03, 2009 11:32 am 
Offline
User avatar

Joined: Mon May 04, 2009 9:32 am
Posts: 817
Location: Northwold with KTP on my mind...
Me too... :?

For me it is still about the ammount of information carried in each pixel. Let's use my camera's 12 Bit Image Quality. A bit is either a 1 or a 0, so, a 12-Bit file consists of 12 x 0's or 1's. Thus looking something like this for example: 111001100110

So, a pixle with more 1's than 0's will be larger. So, if all the pixels in a picture contain more 1's than 0's, the file will be larger that a picture who's pixels contain more 0's than 1's?

Or am I talking nonsense now? :hmz:

A bit of a definition about a bit:

"A bit is the basic unit of information in computing and telecommunications; it is the maximum amount of information that can be stored by a device or other physical system that can normally exist in only two distinct states. In information theory, one bit is typically defined as the uncertainty of a binary random variable that is 0 or 1 with equal probability."

_________________
KNP: 14 June: Skukuza Camping
15 -21 June: Letaba Camping


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Thu Dec 03, 2009 11:42 am 
Offline
Junior Virtual Ranger
Junior Virtual Ranger
User avatar

Joined: Tue May 19, 2009 2:15 pm
Posts: 1895
Location: Johannesburg - too far from the closest Sanpark
Switchback wrote:
Me too... :?

So, a pixle with more 1's than 0's will be larger. So, if all the pixels in a picture contain more 1's than 0's, the file will be larger that a picture who's pixels contain more 0's than 1's?

Or am I talking nonsense now? :hmz:

Yes :) Whether a bit is 0 or 1, it still takes the same amount of 'space'. You can't not have the 0s, else the datum wouldn't make sense.

I think it may have more to do with the range of colours, and how 'busy' the image is. At least this is for JPEGs in my experience.

Try comparing two RAW images, one that is really busy (lots of colours physically close together and one with fewer colours.

_________________
The 'mite formerly known as joshilewis

FGASA Level 1 Guide

Glen Reenen TR

15-18 June: Berg-en-dal


Top
 Profile  
 
 Post subject: Re: Relations between Kb and Pixels
Unread postPosted: Thu Dec 03, 2009 11:54 am 
Offline
User avatar

Joined: Mon May 04, 2009 9:32 am
Posts: 817
Location: Northwold with KTP on my mind...
In the days when I still programmed PIC's (Programmable Integrated Circuits), the Memory on my EEPROM IC's (Electrically Erasable Programmable Read Only Memory Integrated Circuits) got fuller much quicker when more 1's were part of the language than 0's. I could view this when converting my code to binary.

So, from an engineering perspective, this makes sense to me that this applies to Digital Images as well. Although both 0's and 1's take up a unit of space, the data ammount of 1's are more than 0's.

Have made the comparison in my previous post.

_________________
KNP: 14 June: Skukuza Camping
15 -21 June: Letaba Camping


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Webcams Highlights

Addo Nossob Orpen Satara
Addo Nossob Orpen Satara
Submitted by Foxy at 13:56:48 Submitted by HenkB at 15:01:23 Submitted by BevAnn at 14:56:01 Submitted by Lindyvee at 13:30:45