Wox-launcher/Wox · error · SystemExit
{path} is not a PNG file
Error message
{path} is not a PNG file What it means
Error "{path} is not a PNG file" thrown in Wox-launcher/Wox.
Source
Thrown at assets/generate_app_icons.sh:72
def paeth(left, up, up_left):
estimate = left + up - up_left
distance_left = abs(estimate - left)
distance_up = abs(estimate - up)
distance_up_left = abs(estimate - up_left)
if distance_left <= distance_up and distance_left <= distance_up_left:
return left
if distance_up <= distance_up_left:
return up
return up_left
def decode_png(path):
# Decode common 8-bit non-interlaced PNG files into straight RGBA bytes.
with open(path, "rb") as handle:
data = handle.read()
if not data.startswith(b"\x89PNG\r\n\x1a\n"):
raise SystemExit(f"{path} is not a PNG file")
width = None
height = None
bit_depth = None
color_type = None
palette = None
transparency = b""
idat = bytearray()
offset = 8
while offset < len(data):
length = struct.unpack(">I", data[offset : offset + 4])[0]
offset += 4
kind = data[offset : offset + 4]
offset += 4
payload = data[offset : offset + length]
offset += length
offset += 4View on GitHub (pinned to 1659730fcb)
When it happens
Trigger: Thrown at assets/generate_app_icons.sh:72 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Wox-launcher/Wox@1659730fcb (2026-08-15).
Data as JSON: /api/errors/b44400577c1714c9.
Report an issue: GitHub.