Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Identify Image #169

Open
developerdevice opened this issue Nov 12, 2021 · 1 comment
Open

Cannot Identify Image #169

developerdevice opened this issue Nov 12, 2021 · 1 comment
Labels
needs-info Issue lacks appropriate detail or requires additional information possible-bug Something isn't working

Comments

@developerdevice
Copy link

developerdevice commented Nov 12, 2021

Bug Description

The doc tells that supported formats are .jpg, .jpeg, .png, .svg, but when I configure the path of my logo the HyperGlass returns

❌ Error building UI: cannot identify image file '/etc/hyperglass/logo.png'

The same occurs to .svg, .jpg and .jpeg

Local Configurations

---
logo:
  dark:  /etc/hyperglass/logo.png
  light: /etc/hyperglass/logo.png
  favicon: /etc/hyperglass/logo.png
  height: null
  width: 100%

Logs

[ERROR] 20211112 16:16:09 | hyperglass.util.frontend:401 | build_frontend → cannot identify image file '/etc/hyperglass/logo.png'
❌ Error building UI: cannot identify image file '/etc/hyperglass/logo.png'

Environment

Server

Metric Value
hyperglass Version 1.0.4
hyperglass Path /etc/hyperglass
Python Version 3.7.3
Node Version 14.18.1
Platform Info Linux-4.19.0-17-amd64-x86_64-with-debian-10.11
CPU Info Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
Logical Cores 4
Physical Cores 4
Processor Speed 2.394GHz
Total Memory 7.81 GB
Memory Utilization 12.1%
Total Disk Space 50.99 GB
Disk Utilization 14.1%

Client

  • OS & Version: Fedora 35
  • Browser: Chrome 95.0.4638.69 and Firefox 94.0
@developerdevice developerdevice added the possible-bug Something isn't working label Nov 12, 2021
@thatmattlove
Copy link
Owner

This appears to be an error passed through from the PIL/Pillow library, which is what hyperglass uses to manipulate images. I'm not able to reproduce this, however. Have you verified it's not a file permissions issue? Or tried with another logo file entirely? If yes to both of those, can you share the image file you're using so I can try to reproduce the issue on my end?

Thanks,
Matt

@thatmattlove thatmattlove added the needs-info Issue lacks appropriate detail or requires additional information label Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-info Issue lacks appropriate detail or requires additional information possible-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants