Git Product home page Git Product logo

victordomingos / optimize-images-x Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 3.0 1.65 MB

A desktop app written in Python, that exposes and unlocks the full power of Optimize Images in a nice graphical user interface, to help you reduce the file size of images.

License: MIT License

Python 100.00%
optimize-images pillow pypi image-processing image-optimization image-optimisation image-optimizer jpeg png image-compression

optimize-images-x's People

Contributors

victordomingos 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

Watchers

 avatar

optimize-images-x's Issues

Cannot package application to executable file using py2app or Pyinstaller

I really like this application and it's source code and would very much like to use it for some image optimization projects I am doing together with a small team. Instead of worrying about running the source code directly from the Python project, my intention was to package the application to a distributable, executable file.

However, when I try to package the installation with py2app or Pyinstaller (I've tried both) I cannot seem to get it to work. I have swept all threads online trying to debug this issue, but I can't find anything.

I really like your lib @victordomingos! Have you managed to package optimize-images-x to a distributable, executable application? If so, how?

Would really appreciate some insight.

Thanks in advance!

In Python3.12 optimizing a single image triggers a silent error

In Python3.12 optimizing a single image triggers a silent error, visible as a traceback in command line. In the GUI no feedback is given to the user and the image stays untouched.

Exception in Tkinter callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/tkinter/__init__.py", line 1962, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/optimize_images_x/gui/main_window.py", line 324, in select_files
    self.optimize_images()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/optimize_images_x/gui/main_window.py", line 464, in optimize_images
    for result in executor.map(do_optimization, tasks):
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/concurrent/futures/process.py", line 864, in map
    results = super().map(partial(_process_chunk, fn),
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/concurrent/futures/_base.py", line 608, in map
    fs = [self.submit(fn, *args) for args in zip(*iterables)]
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/concurrent/futures/process.py", line 197, in _get_chunks
    chunk = tuple(itertools.islice(it, chunksize))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/optimize_images_x/gui/main_window.py", line 446, in <genexpr>
    tasks = (convert_task(t, self.task_settings)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/optimize_images_x/task_conversion.py", line 29, in convert_task
    return OITask(path,
           ^^^^^^^^^^^^
TypeError: Task.__new__() missing 1 required positional argument: 'output_config'

When executing nothing happens

I have installed the requirements and when executing setup.py nothing happens, I thought it would load an interface like in the example but nothing happens at all. What am I doing wrong?

How To

Heelo I very want use this tool but can not figure out how to run this project on macOS, can you do a tutorial or so?

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.