Am Mon, Mar 01, 2021 at 03:54:12PM +0000 schrieb Wols Lists:

> >> So basically, how do I save an image as "one bit per pixel" like you'd
> >> think you'd send to a B&W printer?
> > 
> > $ convert input.jpg -threshold 50% output.png
> > 
> > should do it, you may need to play with the threshold setting. The file
> > command reports the output file as being "1-bit grayscale".
> > 
> > You can also use -monochrome but that will produce a dithered image,
> > that's probably not what you want judging by your description.
> > 
> > 
> FINALLY!
> 
> Thanks, that worked! Okay, I also adjusted the dpi because the original
> scan was 600 and I've reduced it to 300, but this has reduced the file
> size from 3MB to 180KB.

Also note: DPI is just a factor that is stored in the image’s metadata. What
produces the actual filesize are the pixels. DPI is used to “convert”
between the physical size of a hypothetical print (i.e. sheet of paper) and
the number of pixel required for a certain density (and thus, quality).

As far as I know, jpeg does not have a special “grayscale mode”. You may
have reduced the information of the image by making all three colour
channels equal to one another, but jpeg still encodes the data as if were a
colour image. That’s why png is the much better option in this case.

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

UNIX is not user-unfriendly.
It just expects the user to be a little more computer-friendly.

Attachment: signature.asc
Description: PGP signature

Reply via email to