~coco/ymscript

image processing scripts (partial port of imscript to python)
7e0ed09c — enric meinhardt-llopis 2 days ago
move pylambdas outside of root
adf8c5dc — Enric Meinhardt-Llopis 2 days ago
create pure python wheel for pip
81f70f3e — Enric Meinhardt-Llopis 4 days ago
pylambda (POC)

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~coco/ymscript
read/write
git@git.sr.ht:~coco/ymscript

You can also use your local clone with git send-email.

YMSCRIPT: PYTHON+NUMPY REIMPLEMENTATION OF SOME IMSCRIPT FUNCTIONS
==================================================================

Just some handy functions from imscript implemented in python+numpy,
with similar semantics.


DOCUMENTATION
-------------

Install with "pip install ymscript"

- qauto : quantize an image to 8 bits
- sauto : quantize and apply a signed palette
- vauto : quantize a vector field to rgb
- lap,grad,div : differential operators
- ntiply : enlarge pixels by an integer factor
- blur : blur by various kernels (gauss,cauchy,laplace,riesz,disk,square)
- laplace : smooth interpolation
- poisson : poisson editing

There are no explicit requirements, but most functions require numpy or some
numpy-mocking arrays.  The requirements are "soft".  The package will install
correctly no matter what, but some functions will fail at runtime if their
requirements are not satisfied.

The differential operators require imgra.

The blur requires numpy.fft

Poisson editing requires imgra and scipy.linalg


RELEASING
---------

To update the pypi hub, you need an account on pypi, and then run the following
commands:

        # update version number on file setup.py
        # update version number on file ymscript.py
	python -m build
	python -m twine upload dist/ymscript-X-py3-none-any.whl
	rm -rf build dist ymscript.egg-info