This seems to be a problem with using JPEG. My questions are:
- How to remove the grey areas around the text? What filter/process in GIMP/ImageMagick or other free image editing/scripting mediums would you recommend?
- What would be a programmatic approach to cleaning an image like this? E.g. converting it to a bitmap and applying some filter or process using scripting, etc.
- What is the preferred web friendly file format to not end up with
such dirty looking images?
All it really takes is a Levels, Curves, or Brightness adjustment. Almost any free or paid raster editing application has the capacity to raise the white point and lower the black point. This would, in turn, remove the grey, brighten the white, and darken the black.
Images don’t customarily “end up” like that without some serious alteration somewhere such as saving a jpg as a jpg over and over again. (Don’t do that with jpgs)