Menu

mkbitmap help

Help
2016-04-09
2016-04-09
  • Bob Workman

    Bob Workman - 2016-04-09

    I am having a problem, or dont understand the app.
    I have a BMP file which is a simple 2 (black & white) color logo where logo is a solid color.

    I want to convert it to pgm file to input to potrace. when I enter

    mkbitmap -f 2 -s 2 -t 0.48 imperial.bmp >imperial.pgm

    What I get is an outline of the logo and I need a solid like the original.
    I then want to input this file to Potrace to get a SVG file, again with the logo a solid color.

    What am I doing wrong, or how do I get what I need?

     
  • Peter Selinger

    Peter Selinger - 2016-04-09

    Hi Bob,

    thanks for writing. Mkbitmap is for turning grayscale images into black and white, and it does things like smooth backgrounds and thresholding. Since your image is already black and white, you shouldn't use mkbitmap on it.

    Instead, just use Potrace directly on your image. For example:

    potrace -b svg imperial.bmp

    I hope this helps, -- Peter

     

Log in to post a comment.