pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)
[personal profile] pne

I wonder what the smallest (in terms of file size) 100x100 pixel LiveJournal-legal standards-compliant (e.g. no leaving off IEND chunks from a PNG image) user picture is?

The one on this entry is 77 bytes; can anyone beat that? (Interestingly, I used netpbm to create both an all-white and an all-black image; the all-white one ended up as 82 bytes when converted to PNG with pnmtopng, 5 bytes more than the all-black one.)

And what's the smallest LiveJournal-legal user picture? I'll guess that it'll be a single-pixel picture; this user picture of mine, for example, of one black pixel, packs a whopping 67 bytes (of which 10 bytes are actual image data, i.e. the contents of the IDAT PNG chunk; the rest is checksums and headers, for an overhead of 570%!). Strangely enough, a white single pixel also takes up 67 bytes (the image data differs from that of the black pixel in three bits: it's 78 DA 63 68 00 00 00 82 00 81 in the white image and 78 DA 63 60 00 00 00 02 00 01 in the black one).

Date: Monday, 8 November 2004 09:56 (UTC)
From: [identity profile] bride.livejournal.com
Yeah, the smaller the image, the more overhead the PNG format becomes in terms of storage. A single black pixel as a GIF is 34 bytes. In general, PNG is best for not-small pics that have a lot of smooth anti-aliased curves; JPG makes the colours mottle. JPG is better for things like photos where lines are not exact; PNGs of photographs are humongous.

I save all my stuff to PNG, GIF and JPG to see which one looks best and is the smallest size =)

Profile

pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)
Philip Newton

June 2015

S M T W T F S
 12 3456
78910111213
14151617181920
2122232425 2627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Saturday, 19 July 2025 07:26
Powered by Dreamwidth Studios