Add a black-and-white .pbm and get a JPG for the form or site that will take nothing else.
FluffyShieldProtected workspace
From
To
Loading the tool…
The tool didn't load. Reload the page, or check whether an extension or network filter blocks .
Free · No upload · No sign-up · No usage quotas
How it works
Each bit is read as a black or a white pixel
→The picture is written as a JPG at Quality 92
→You save the JPG
What it does
Header note left out
A program can write a note into a PBM's first lines, after a # sign, such as its own name. The JPG doesn't carry it over.
Limits A plain-text PBM with any digit other than 0 or 1 gets an error, and so does a file that ends before its last row.
Why is the JPG of your PBM bigger than the PBM?
A PBM spends one bit on a pixel. A JPG spends far more on every sharp edge, and a black-and-white picture is nothing but edges.
FluffyBench · 3 min read · Measured on a test bitmap
Why does a black-and-white picture grow as a JPG?
A PBM is about the leanest picture file there is. Each pixel is a single bit, black or white, so eight pixels fit in one byte. A line drawing, a signature or a mask that tells a program which pixels to keep needs no third shade, and a PBM spends no room on one.
A JPG works from the opposite idea. It was made for photos, where colors drift gently from one pixel to the next, and it saves room by describing those gentle changes in broad strokes. A jump from pure black to pure white is the least gentle thing a picture can hold, and a JPG needs a lot of description to get anywhere near it.
Our black-and-white Earth came out five times larger as a JPG
PBM1.2 KB
PNG3.0 KB
JPG6.0 KB
0246
File size, KB
All three hold the same 96 by 96 pixel bitmap. FluffyBench made the PNG and the JPG at its starting settings. How we measured
Even with all that room, the edges don't come out clean. Where black meets white, the JPG leaves a thin haze of gray. In our bitmap 2,755 of the 9,216 pixels, about three in ten, came back slightly off pure black or white, the worst by 11 steps on the 0 to 255 scale. That's too faint to notice at a glance, but the picture is no longer just two colors.
So send the JPG where nothing else is accepted, and keep the .pbm as your copy.
Turning the bitmap into a JPG
Our JPG was made with Settings as they start, and yours can be too.