Brightcells / pngquant

A Python Wrapper of Pngquant
https://pypi.org/project/pngquant/
32 stars 6 forks source link

ValueError: pngquant not found #5

Open jcabrerahi opened 4 years ago

jcabrerahi commented 4 years ago

Please could you explain with example the use of pngquant on python?

Brightcells commented 4 years ago

@jcabrerahi Should install Command-linepngquant first. Reference: https://pngquant.org/

karlwx commented 4 years ago

I'm getting the same error. I have pngquant installed. I try the following:

import pngquant
pngquant.config('/path_to_pngquant_dir/pngquant')

I can run pngquant from the command line with /path_to_pngquant_dir/pngquant, but still get the ValueError in the python script.