Insert width and height

This commit is contained in:
Florian Hoss 2024-10-01 06:42:23 +02:00
parent c04a3ed00d
commit f0b6b4915e
Signed by: flohoss
GPG key ID: 5BA0B454E498DF62

View file

@ -24,7 +24,7 @@ func DownloadSelfHostedIcon(url, title, filePath string) ([]byte, error) {
return nil, fmt.Errorf("failed to read icon: %w", err)
}
data = replaceClassNames(data, title)
// data = insertWidthHeight(data)
data = insertWidthHeight(data)
err = os.WriteFile(filePath, data, fs.FileMode(0640))
if err != nil {
return nil, fmt.Errorf("failed to write icon: %w", err)