74
votes
Aren't all digital images ultimately just pixel values between 0 - 255?
Sorry, but your basic premise is wrong: an image can be encoded as an array of RBG pixels with 8 bits per value, but there are a lot of other ways:
one channel with one bit/channel (pure black and ...
51
votes
Aren't all digital images ultimately just pixel values between 0 - 255?
If at the core, photos are just 3 channels of pixel values [0, 255] X RBG,
But photos are not "just 3 channels of pixel values" even "at the core." Computer screens are typically made up of an array ...
31
votes
What is the "optimal" file size of JPEG images with respect to their dimensions?
The size of files compressed with JPEG vary depending on the complexity of the image. Trying the control the file sizes the way you describe will result in highly variable perceived image quality.
...
25
votes
Two EXACTLY the same .jpg images with one image more than twice the file size of the other - Why?
The JPEG compression algorithm works like this:
Instead of being saved as three R, G and B planes, your image is decomposed into 3 planes, one that carries luminosity, and two that carry color (aka ...
19
votes
Aren't all digital images ultimately just pixel values between 0 - 255?
In addition to @remco's fantastic answer, I want to add why there are different codecs for (roughly) the same purpose.
Codecs are designed to:
Be lossless vs. lossy
Encode fast vs. reduce filesize
...
18
votes
What is the "optimal" file size of JPEG images with respect to their dimensions?
No. This is a wrong approach.
File size in pixels, yes, has something to do with the final weight, but it is not the only factor.
Make a test. Take a completely white file of the same 2400x600px, ...
17
votes
JPG and file sizes - BASIC facts for dummy
JPEG is an image format with lossy compression.
This means, every time you save a modified JPEG image, its quality gets slightly reduced because the algorithms used for encoding and compressing the ...
14
votes
JPG and file sizes - BASIC facts for dummy
To simplify a bit, JPEG image compression splits the image into different frequency components and stores them separately. Depending on the compression settings, it also stores the higher frequency ...
13
votes
Aren't all digital images ultimately just pixel values between 0 - 255?
There are several reasons why this assumption is incorrect, and they all come down to one thing:
What scale are you actually using?
And that can be broken down a little further:
What is 255?
"...
11
votes
Two EXACTLY the same .jpg images with one image more than twice the file size of the other - Why?
If the files are different sizes, the only way the image data can be identical is if the Exif data is different (an embedded thumbnail difference would be a place to start).
Suppose there are two ...
10
votes
Aren't all digital images ultimately just pixel values between 0 - 255?
If at the core, photos are just 3 channels of pixel values [0, 255] X RBG
That is a seriously broken assumption and the rest of your question is simply not answerable without breaking away from it.
...
10
votes
What is the "optimal" file size of JPEG images with respect to their dimensions?
Web developer here. Here's how I'd approach this:
1. Determine the displayed image dimensions and required screen resolutions.
Your first task is determining what pixel sizes the images will be ...
8
votes
Accepted
Do high export resolutions compromise image safety?
An image doesn't have a DPI until you print it.
All it has are dimensions in pixels.
Anything else is simply an interpolation of one system to another in order to display on your screen... which is ...
8
votes
Aren't all digital images ultimately just pixel values between 0 - 255?
No, an image is not just RGB values in the range 0-255. Even if you ignore storage formats, there are many ways to describe color. Here are some examples:
Red, green and blue components (RGB)
Cyan, ...
7
votes
Accepted
Should I resize photos before or after image optimization?
The "ImageOptim" tool pulls together a bunch of other things, and in the case of JPEG files, the relevant thing is the MozJPEG optimizing encoder. If you use this encoder and then resize and save with ...
7
votes
Two EXACTLY the same .jpg images with one image more than twice the file size of the other - Why?
These are two different images, not of the same scene?
For the same perceptual quality, some images compress better than others.
Does one have a lot of smooth or blurred areas (like the sky without a ...
6
votes
How to resize images in place in Lightroom
Select the RAW photos, then do an Export.
In the Export Location section, choose Export To: Same folder as original photo.
Check the Add to This Catalog Checkbox.
Select the file output options ...
6
votes
What is the "optimal" file size of JPEG images with respect to their dimensions?
While @Rafael's answer has explained the JPEG compression ins and out, I will try to answer your web and upload problematic.
Using an image in a website (for design or content) will dictate some ...
6
votes
Image properties for social media?
None of 1-4 matter. All the major social networks (definitely including Facebook, Twitter and Instagram) re-encode any uploaded photos with their own settings, optimised for their use case (reducing ...
6
votes
Two EXACTLY the same .jpg images with one image more than twice the file size of the other - Why?
The problem is that we forget all of our digital files are made up of binary, but our computers obfuscate those details. We simply see in our file explorer that some whatever.jpg file was last updated ...
5
votes
Aren't all digital images ultimately just pixel values between 0 - 255?
Your premise is not wrong: any image can be represented using an N-dimensional array of finite values. Personally, I generalize that using discrete geometry instead of a matrix, but the essence is the ...
5
votes
Accepted
Image File Size Question
Your naive computation works on naive image formats (early BMP, TGA).
However, most popular image formats use some form of compression, which can be lossless or lossy, and in both cases, the achieved ...
5
votes
Accepted
Does JPEG compression reduce actual image size?
Yes, and no :)
I think the article is speaking about the image file size (in bytes), and not the image size itself (in pixels) which is indeed unchanged.
But, to be accurate, one of the tradeoffs of ...
4
votes
Aren't all digital images ultimately just pixel values between 0 - 255?
Bitmaps
A bitmap (BMP) is essentially what you describe, an array of numbers that represent pixel colors. E.g. something like
1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1
Lossless compression
Now, let's ...
4
votes
Aren't all digital images ultimately just pixel values between 0 - 255?
Let's say it was true, that every pixel was just three numbers (red, green and blue) each in the range 0-255. Other answerers have started by (correctly) challenging that assumption, but for ...
4
votes
Accepted
Why do different ISO images have different file sizes?
Digital cameras, to save space, compress the data. Think of storing a book after it has been converted to a digital file. One could devise a scheme to cast out all entries of the word like “the” or “...
4
votes
Accepted
What is the "optimal" file size of JPEG images with respect to their dimensions?
On average, JPEG's sweet spot is around one bit per pixel.
This will of course vary depending on image content, because certain types of graphics (e.g. flat areas and smooth gradients) compress ...
4
votes
Two EXACTLY the same .jpg images with one image more than twice the file size of the other - Why?
When I zoom in by say 700% on the same spot on each image I see just about the same amount of pixilation, indicating the compression is the same.
Open a JPEG file with an image editor, save the image ...
4
votes
Two EXACTLY the same .jpg images with one image more than twice the file size of the other - Why?
Maybe it would help if, instead of thinking of an image file as "being" the image or "containing" the image, you thought of it as instructions that tell your computer how to re-...
4
votes
What are the standard pixel, inches and megabyte sizes for fine art photography?
There is no single standardized file size, ppi, aspect ratio, nor physical dimension in the field of fine art photography. Works can range from square postage stamp sized pieces (or even smaller) to ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
file-size × 64jpeg × 18
resolution × 13
photoshop × 12
image-quality × 11
image-compression × 11
raw × 6
file-format × 5
lightroom × 4
tiff × 4
image-processing × 3
rescaling × 3
resize × 3
photo-editing × 2
printing × 2
iso × 2
memory-card × 2
sdcard × 2
web × 2
megapixels × 2
dpi × 2
canon × 1
nikon × 1
metadata × 1
sensor × 1