Giter Club home page Giter Club logo

ii-pix's People

Contributors

kriskennaway 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ii-pix's Issues

Two installation problems

Hi Kris,

Running the command

python precompute_conversion.py

with Python 3.10 on Windows gave me

ModuleNotFoundError: No module named 'networkx'

https://www.colour-science.org/installation-guide/ describes networkx as optional dependency. So it seems networkx needs to be added to the dependencies in your README. I "fixed" that issue by installing networkx. Then the same command gave me

FileNotFoundError: [Errno 2] No such file or directory: 'data/rgb_to_cam16ucs.npy'

Just as a wild guess I manually created a directory data - and voilà - it worked like a charm. It would be great if you could either have that directory created automatically or add it to the installation commands in your README.

Thanks in advance, Oliver

Could Joel Yliluoma's color ordered dithering algorithm be implemented?

You mentioned in your documentation that you were looking for a color ordered-dithering algorithm, but had reservations about one that took NTSC bleed into account. I'm not sure you'll find one specifically for that, but maybe it would be worth implementing Joel Yliluoma's arbitrary-palette positional dithering algorithm (https://bisqwit.iki.fi/story/howto/dither/jy/) as an option until you find ways to tweak it.

Ordered dithering is important for anyone attempting animation, as error-diffusion dithering doesn't lend itself to deltas between frames, whereas ordered dithering does and produces stable deltas.

np.complex was a deprecated

When I'm doing python precompute_conversion.py it gives me the following error:

Traceback (most recent call last):
  File "C:\Program Files\ii-pix\precompute_conversion.py", line 11, in <module>
    import colour
  File "C:\Program Files\Python312\Lib\site-packages\colour\__init__.py", line 67, in <module>
    from .colorimetry import (
  File "C:\Program Files\Python312\Lib\site-packages\colour\colorimetry\__init__.py", line 10, in <module>
    from .spectrum import (SpectralShape, SPECTRAL_SHAPE_DEFAULT,
  File "C:\Program Files\Python312\Lib\site-packages\colour\colorimetry\spectrum.py", line 487, in <module>
    SPECTRAL_SHAPE_DEFAULT = SpectralShape(360, 780, 1)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\site-packages\colour\colorimetry\spectrum.py", line 100, in __init__
    self.start = start
    ^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\site-packages\colour\colorimetry\spectrum.py", line 129, in start
    assert is_numeric(value), (
           ^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\site-packages\colour\utilities\common.py", line 613, in is_numeric
    [float, complex, np.integer, np.floating, np.complex]))
                                              ^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\site-packages\numpy\__init__.py", line 338, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'complex'.
`np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'complex_'?

The source is a clone of the current main branch.

How do I resolve this?

Runtime error: import: delegate library support not built-in

I'd like to try this little great project. First, to build it I had to install Pillow (v8.1.2) and PIL Tools (v1.0) in addition to the other dependencies mentioned in the Readme. Perhaps, the dependency list is incomplete?

Now, when I run the tool (even without arguments), I get this error:

import: delegate library support not built-in '' (X11) @ error/import.c/ImportImageCommand/1297.
/usr/local/Cellar/ii-pix/20210315/libexec/convert.py: line 22: syntax error near unexpected token `('
/usr/local/Cellar/ii-pix/20210315/libexec/convert.py: line 22: `def main():'

This may be related to my build issue mentioned above. Any idea what is wrong? Using Python v3.9.2, if that matters.

Flags in documentation are out of sync

The README.md has a conflicting story about the command line flags. In the lower body of the .md file, there is an example that shows --lookahead 8 but that flag doesn't appear to exist anymore.

Also, in the Double Hi-Res section, it shows that there's a --palette ntsc flag, but it doesn't make it clear nor show what the other palette options are. Could that be put in?

Last, running python3 convert.py -h only shows the -h option and the positional arguments. I ran it and then was confused because I knew there had to be more.

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.