Subject: Re: Why did smaller picture get bigger size file in one fomat and smaller in another?
On 2026/8/22 22:3:27, WolfFan wrote:
On Aug 21, 2026, micky wrote
(in article<8a4h8lpu0mu337gqgp90lej8ercgcc4rp6@4ax.com>):
Am I correct with the obvious that the larger the file for a graphic or
photo, the better quality it will have?
Incorrect. There are a multitude of different file formats for images; TIFF
Correct _within the same filetype_.
files are huge, JPG files are much smaller, GIF files can be smaller than JPGs but have other problems, PNGs are bigger than JPGs but can have better quality.
The ?quality? of an image is primarily determined by the bit level and
the resolution; GIFs top out at 8-bit, meaning that they can have, at most, 256 colors. TIFFS, PNGS, and JPGS can go to 24 or 32 bits, or higher in
GIFs use a paletting system, however; only 256 _different_ colours in
any one image, but each of those 256 can (I think always do) have three
bytes of colour information.
certain circumstances. 24 bit color is 16,777,216 colors. Obviously a color image is going to look better in almost anything not a GIF. The resolution is
Not _entirely_ true - for some things (especially things of limited
numbers of colours to start with), the lack of compression artefacts can
be good.
extremely important, too; typical images on the Web are 72, 96, or 100 dots per inch. Each dot would be displayed in the colors available, 256, 65,536, or 16,777,216 depending on whether 8, 16, or 24 bit were used per dot. A 5? by 4? image at 100 dpi would have 500 dots by 400 dots, or 200,000 dots. A
Any given image will look worse if its size in pixels is reduced, unless
it didn't need to be that many pixels in the first place (i. e. has been artificially made bigger in pixels). This is independent of the
compression (filetype).
GIF, being limited to 8 bits (one byte) per dot, would, depending on several factors, take up 200,000 bytes of storage.
No, because - after the reduction to 256 colours - GIFs have lossless compression.
A JPG of the same image would take
up three times the storage, or 600,000, as it would use 24 bits, three bytes,
per dot... except that JPGs are compressed, so it?s not going to be
anything close to that. (A 32 bit JPG would be a maximum of 800,000 bytes, but again not really, it?s compressed).
Note that the _amount_ of compression in a JPG can be selected, if the
graphics software has that adjustment. Digital cameras used to - maybe
still do - have "quality" settings, such as low, medium, and high, _as
well as_ resolution settings of fewer pixels than the sensor natively
has; these affect the amount of compression. IrfanView has a slider
control; I usually find the default setting of 80 produces acceptable
results (I don't know what the range is, nor how the figure relates to anything).
A PNG is also compressed, just not > as tightly packed as a JPG, and
so would be larger. A TIFF is not compressed > at all. TIFFs are huge.
(Note that the 200,000, 600,000, and 800,000 figures
are max, most files won?t be that big.)
I _think_ the TIFF format is a wrapper, and _can_ involve some
compression. It's not a common format these days, except from some
scanners; you're unlikely to find it on a web page.
It is perfectly possible to have a high resolution GIF of something which works well in 256 or fewer colors and which looks better than a low-resolution TIFF, and takes up less space. Furthermore, as both JPGs and PNGs use lossy compression, if you save a JPG or PNG a few times it will look
I thought that was the case; at least one other poster in this thread
has said PNGs are losslessly compressed.
noticably worse. (PNGs aren?t as lossy as JPGs. They?re still lossy.) If
you work with images, try to do everything using TIFFs or another non-lossy format, such as Photoshop PSD, and export to JPG or PNG as the final step. You?ll have an image pretty close to the original, but a lot smaller.
I'd agree - if you're repeatedly loading, working on, and saving an
image, don't use JPEG for the intermediate saves, though I'd say use
BMP, as that - though it'll produce huge files (but doesn't matter if
they're only intermediate stages you're not going to keep), they'll load quicker. Better, don't keep saving _and reloading_, but do all your work
_in_ the image prog.; while the image remains in the prog.'s memory,
it's not being compressed at all. (Do occasional saves in case you mess
up, but don't reload those unless you have to.)
Second, my subject line question: IIUC, I did the first part
correctly.... I saw a graphic on the web, right click, copy image.
Pasted to ms-paint,
Do NOT do that. Image quality will suffer.
Agreed - any save from an image software (Paint, IrfanView, Adobe, ...)
will cause degradation - _if_ it's in one of the lossy formats, such as
JPEG, PNG, or (probably) GIF. Even if it was originally in one of those formats, loading it into the graphics software involves decompressing it
- and there's no certainty that that software will save with exactly the
same compression (in fact it almost certainly won't).
You say "a graphic" - if it was something of a limited number of
colours, such as some company logos or some cartoons, then GIF _may_ not
lose anything. But best not to involve a graphics prog. at all, just use
"save image as" (or similar wording) from the browser.
Save. All those 3 or 4 steps are needed to save a
graphic off the web, right?
No. Just right-click, select save as image. You will have the image in the format set up on the web page, usually JPG or PNG. Note that some sites use webp, a Google image format which needs to die. If I get a webp I immediately
convert it to a PNG.
Though doing so involves a conversion and thus degradation :-) !
It chose .png. Later I used Save As and chose JPEG. Then I looked at
one and saw that it only filled the upper left corner and there was also
a lot of white space, so I went back to Paint and moved the lower right
corner to where it matched the image and there was no white space. I
saved it again in .png and .jpg.
(That does seem odd, and must be a function of how you captured the
image. Oh, by the way, never use screenshot, or grabber, or whatever it
or its variants are called this week - that nearly always involves
degradation too.)
you?re editing thee image. MS Paint is not the best image editor. The Affinity image tools are free or cheap (max $60 last I looked, with afree option if you try) and are much better than MS Paint. Adobe?s tools are
also much better than MS Paint, but are neither free nor cheap.
I'd say unless you're going to get seriously into image manipulation,
you don't need _any_ of the paid ones - I used to have an old version of
one of them that came "free" with something, but found I was using it
less and less compared to the free IrfanView, and when IV got a clone
brush (for photo retouching) (that was many years ago) I never used (it
was PSP) again. (There's another - also free - software that has the
same facilities as IrfanView but a different user interface - I forget
the name; might be FastStone or something like that.)
Now I have 4 files. The .png file with the extra white space is
254K and without is 330K about 40% bigger.
The .jpg file with the extra white space is
77K and without is 66K. 14% smaller.
I would expect them both to be smaller without the white space.
Though not much, because white space (or any large area of solid colour) compresses almost to nothing.>
Compression and resolution. you messed with one or both. God know what MS paint did.
Any ideas about this?
It also offers .bmp
do not use. MS has been trying to kill BMP for nearly two decades, for several excellent reasons and a few extremely stupid reasons. Stay away
and GIF.
BMP saves the original image data, at (usually) three bytes per pixel,
with no compression (lossy or otherwise); it thus produces larger files
than any other format. Apart from that, I see nothing wrong with it!
It's like saying don't use .txt when you can zip.
256 colors only. it will be smaller, but may not necessarily look the same.
Any special reason to use one of those
instead? I don't even know where I will use this graphic but I liked
it and I'm saving it, for unknown future uses.
If you _know_ the image has 256 or fewer colours, then GIF will store it
with no loss at all. GIF and JP(E)G are the most widely recognised and supported ones, though most things support PNG too these days. I use GIF
when I'm annotating screenshots and want to save intermediate results
I'm going to come back to later (to add more annotations).>
How big _is_ the image in question, in pixels? (Any image software will
tell you; browsers also used to, but Edge and other Chrome-based
browsers no longer show you the title bar where that information was
shown, unless you have an add-on that puts it back [I can send you one
such if you want]). And how many colours are in it? (IrfanView will tell
you - you just type I for info; other image software probably will too.)
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()ALIS-Ch++(p)Ar++T+H+Sh0!:`)DNAf
you can't blame boomers for everything. - Joe Queenan, RT 2023/6/24-30
--- PyGate Linux v1.5.19
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)