Git Product home page Git Product logo

pylaroid's People

Contributors

rage2000 avatar

Watchers

 avatar  avatar

pylaroid's Issues

On mac if jpg take times for be wrinting into the folder an exception append

On mac if jpg take times for be wrinting into the folder this exception

Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.7/site-packages/watchdog/observers/api.py", line 199, in run
    self.dispatch_events(self.event_queue, self.timeout)
  File "/usr/local/lib/python3.7/site-packages/watchdog/observers/api.py", line 368, in dispatch_events
    handler.dispatch(event)
  File "/usr/local/lib/python3.7/site-packages/watchdog/events.py", line 330, in dispatch
    _method_map[event_type](event)
  File "/usr/local/lib/python3.7/site-packages/pylaroid/file_handler.py", line 23, in on_created
    self.photo_sheet.add_photo(event.src_path)
  File "/usr/local/lib/python3.7/site-packages/pylaroid/models.py", line 31, in add_photo
    self.generate_polaroid(file_path)
  File "/usr/local/lib/python3.7/site-packages/pylaroid/models.py", line 48, in generate_polaroid
    image = SelfDevPhoto(file_path, logo=self.logo)
  File "/usr/local/lib/python3.7/site-packages/pylaroid/polaroid.py", line 20, in __init__
    img = Image(filename=filepath)
  File "/usr/local/lib/python3.7/site-packages/wand/image.py", line 2744, in __init__
    self.read(filename=filename, resolution=resolution)
  File "/usr/local/lib/python3.7/site-packages/wand/image.py", line 2822, in read
    self.raise_exception()
  File "/usr/local/lib/python3.7/site-packages/wand/resource.py", line 222, in raise_exception
    raise e
wand.exceptions.CorruptImageError: insufficient image data in file `./DSC_1705_.JPG' @ error/jpeg.c/ReadJPEGImage/1106```

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.