Jonathan-David Schröder

Results 159 comments of Jonathan-David Schröder

Created an [editable RFC of conversion presets on Google Colab](https://colab.research.google.com/drive/1Ox4vigcEHgEqUjUGFyHh7gl76CYkolt0?usp=sharing), also [backed up here on Github](https://github.com/myselfhimself/gmic-py/blob/master/gmic_gcolab_numpy_integration_spec.ipynb). It both gives preset specifications and code blocks exemplify and testing them. Uploading fresher...

- Skimage user and PIL user found and interviewed over Twitter, they have been helping to lower the number of cases to cover for now, and will be our first...

the `GmicImage.to_numpy_array(permute='')` parameter which resolves into a `np.ndarray.transpose((0-n tuple))` still gives me issues.. eg. `permute='yxz'` => `transpose((1,0,2,3))` is ok, but it then gives a shape for a different transposition eg....

GmicImage.to_numpy_array(permute='xyzc') where the optional permute string must be a 5-letters string made up of x,y,z,c only in any order, now properly triggers internally a numpy.ndarray.transpose() operation. Pytests for this are...

presets as module-level constants will probably be removed... in favor of no presets at all and just per-framework conversion helper functions

`to_numpy_array()` is renamed to `to_numpy_helper()` understood as a very generic factory method for outputting numpy arrays, which has g'mic-like defaults : no interleaving, w,h,d,s and float32 type without squeezing. some...

WIP from_PIL: ``` import gmic import PIL.Image PIL_apples_filename = "PIL_apples.png" PIL_leno_filename = "PIL_leno.png" gmic.run("sp leno output " + PIL_leno_filename) PIL_leno = PIL.Image.open(PIL_leno_filename) leno = gmic.GmicImage.from_PIL(PIL_leno) gmic.run("display", leno) gmic.run("sp apples output...

simplified above checkboxes TODO list with future method names

Work on the post-`from_PIL()` exit-time segfault helped writing [this public Github Gist on debugging both C/Python module and Python core code](https://gist.github.com/myselfhimself/aa25e69f1f07b74795112e2574dfc0bd) from shell and the CLion IDE. A drop of...

gmic-py 2.9.1 alpha 2 with PIL I/O and solidified numpy I/O is released at: https://pypi.org/project/gmic/2.9.1a2/ - will update the docs (Numpy support page) and add a new PIL support page...