Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Error when uploading an image #6

Open
sdushantha opened this issue Jul 4, 2018 · 2 comments
Open

Error when uploading an image #6

sdushantha opened this issue Jul 4, 2018 · 2 comments

Comments

@sdushantha
Copy link

When i try to upload an image it gives me this error message.

Traceback (most recent call last):
  File "/app/.heroku/python/lib/python3.6/site-packages/tornado/web.py", line 1541, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "server.py", line 26, in post
    colors = pywal.colors.get(path, light=light, backend=backend)
  File "/app/.heroku/python/lib/python3.6/site-packages/pywal/colors.py", line 139, in get
    colors = colors_to_dict(getattr(backend, "get")(img, light), img)
  File "/app/.heroku/python/lib/python3.6/site-packages/pywal/backends/wal.py", line 86, in get
    colors = gen_colors(img)
  File "/app/.heroku/python/lib/python3.6/site-packages/pywal/backends/wal.py", line 41, in gen_colors
    raw_colors = imagemagick(16 + i, img, magick_command)
  File "/app/.heroku/python/lib/python3.6/site-packages/pywal/backends/wal.py", line 19, in imagemagick
    return subprocess.check_output([*magick_command, img, *flags]).splitlines()
  File "/app/.heroku/python/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/app/.heroku/python/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['convert', '/tmp/tmpu3xs1ozu[0]', '-resize', '25%', '-colors', '16', '-unique-colors', 'txt:-']' returned non-zero exit status 1.
@r00tdaemon
Copy link
Owner

What browser/device are you using?
Will it be possible for you too share the image?

@sdushantha
Copy link
Author

I am using Firefox on Ubuntu 18 on a MacBook Air by dual boot.

I think the error happens when I upload a PNG file.

Here is the image I used.
lgbt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants