Git Product home page Git Product logo

potrace-pixelperfect's People

Contributors

koemaeda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

potrace-pixelperfect's Issues

Potrace errors in fontforge and from commandline.

potrace with fontforge spits out a lot of errors

Copyright (c) 2000-2019. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Version: 20190801
 Based on sources from 12:20 UTC 13-Nov-2019-ML-D-GDK3.
05:37:45.613 WARNING: GGDKDrawDestroyWindow (/build/fontforge-cmli1H/fontforge-20190801~dfsg/./gdraw/ggdkdraw.c:1371) - Resetting transient owner on 0x5565770e00(Autotracing...) as 0x55658289a0(ClortDamselNormal  Untitled1.sfd (ISO8859-1)) is dying
05:37:45.625 WARNING: GGDKDrawDestroyWindow (/build/fontforge-cmli1H/fontforge-20190801~dfsg/./gdraw/ggdkdraw.c:1371) - Resetting transient owner on 0x5565770e00(Autotracing...) as 0x55658289a0(ClortDamselNormal  Untitled1.sfd (ISO8859-1)) is dying

environment variable was

export AUTOTRACE="/home/clort/trace/"

In addition, running potrace-pp.py (installed in /usr/local/bin) returns

๐Ÿ•‡ /home/clort/trace$ potrace-pp.py ttest.bmp
Traceback (most recent call last):
  File "/usr/local/bin/potrace-pp.py", line 52, in <module>
    imSrc.putpalette( [255,255,255, 0,0,0] if len(imSrc.getcolors()) > 1 else [0,0,0] )
  File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 1701, in putpalette
    raise ValueError("illegal image mode")
ValueError: illegal image mode

These errors were perhaps caused by saving the .bmp as an rgb image.

Potrace-pp.py on the greyscale version yielded a lot of cpu use, then the text 'Killed'

potrace-pp.py on a 1-bit b/w .bmp also returned "Killed"

potrace-pp.py on a single-character, 16x23 greyscale bmp that had been first reduced to 2-bit b/w yield the result:

๐Ÿ•‡ /home/clort/trace$ potrace-pp.py ttest.bmp
Traceback (most recent call last):
  File "/usr/local/bin/potrace-pp.py", line 73, in <module>
    potrace = Popen(args, stdin=PIPE, stdout=PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

๐Ÿ•‡ /home/clort/trace$ ls -l ttest.bmp
-rw-r--r-- 1 clort clort 1514 Jan 16 06:09 ttest.bmp

Could author or another user please attach a .bmp that can be traced with potrac-pp, along with the potrace-pp.py invocation that can trace it? What should I expect as output?

Could author or another user attach a .bdf that can be imported into a new fontforge project (as background) that successfully traces?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.