metafloor / zpl-image

Pure javascript conversion of PNG, JPEG, GIF files to ZPL GRF bitmaps encoded with Z64.
Other
81 stars 23 forks source link

Pixelated output #3

Open patrickchoi opened 4 years ago

patrickchoi commented 4 years ago

The image I am inputting is already in greyscale (black & white). After conversion the resulting image in ZPL is quite pixelated and missing a lot of detail, and kind of hard to read.

Is there any way to retain the original image and just convert to ZPL only? No need for monochrome rotation etc.

Before orig image

After zpl-image output

metafloor commented 4 years ago

What you are seeing is the effects of converting anti-aliased text (256-level grayscale) to monochrome (black/white). Zebras only do "on/off" pixels of black and white.

Not sure how you are generating the text, but for example, the freetype library can output monochrome glyphs. Text on zebras looks better when the upstream rendering is fully monochrome.