mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 11:09:26 +00:00
fixed size issue
This commit is contained in:
@@ -128,7 +128,7 @@ def webmanifest(_args: Args) -> None:
|
|||||||
files = os.listdir(os.path.join(STATIC_FILES_DIR, "icons"))
|
files = os.listdir(os.path.join(STATIC_FILES_DIR, "icons"))
|
||||||
if svgsupport and any(file.endswith(".svg") for file in files):
|
if svgsupport and any(file.endswith(".svg") for file in files):
|
||||||
svg = [file for file in files if file.endswith(".svg")][0]
|
svg = [file for file in files if file.endswith(".svg")][0]
|
||||||
icons.append({"src": f"{_args.web_root_url}.static/icons/{svg}", "type": "image/svg+xml", "sizes": "any"})
|
icons.append({"src": f"{_args.web_root_url}.static/icons/{svg}", "type": "image/svg+xml", "sizes": "512x512"})
|
||||||
for size in ICON_SIZES:
|
for size in ICON_SIZES:
|
||||||
tmpimg = BytesIO()
|
tmpimg = BytesIO()
|
||||||
sizes = size.split("x")
|
sizes = size.split("x")
|
||||||
|
|||||||
Reference in New Issue
Block a user