The Marilyn Manson Wiki:Images support
WebP support[edit]
Unfortunately the current instance of the wiki does not support the WebP format, neither lossless nor lossy. In order to overcome this limitation, as of now unless the WebP format support is done, it is strongly recommended to convert the images to the loseless PNG format that may be less efficient from the image encoding perspective and may result in files with larger size.
Also to indicate that converted images were WebP files initially, it is also recommended adding the .png extension to the newly converted image file. For example, foobar.webp should become foobar.webp.png once converted.
Batch conversion from WebP to PNG[edit]
On Unix-like OSes/machines batch processing is the easiest using the ImageMagick toolset.
For example, let's first make sure all the given files in the current directory are really WebP files,
$ file *.webp 6egvkfouamqd1.webp: RIFF (little-endian) data, Web/P image, VP8 encoding, 960x960, Scaling: [none]x[none], YUV color, decoders should clamp ott8wdiuamqd1.webp: RIFF (little-endian) data, Web/P image, VP8 encoding, 960x960, Scaling: [none]x[none], YUV color, decoders should clamp r8pyqbluamqd1.webp: RIFF (little-endian) data, Web/P image, VP8 encoding, 960x960, Scaling: [none]x[none], YUV color, decoders should clamp
All of the example files are .webp files that are truly RIFF-encoded files the WebP uses to encode image files in.
The above files batch conversion example:
$ for FILE in *.webp; do convert -verbose "$FILE" "$FILE.png"; done 6egvkfouamqd1.webp WEBP 960x960 960x960+0+0 8-bit sRGB 89286B 0.010u 0:00.014 6egvkfouamqd1.webp=>6egvkfouamqd1.webp.png WEBP 960x960 960x960+0+0 8-bit sRGB 942925B 0.200u 0:00.187 ott8wdiuamqd1.webp WEBP 960x960 960x960+0+0 8-bit sRGB 63716B 0.000u 0:00.009 ott8wdiuamqd1.webp=>ott8wdiuamqd1.webp.png WEBP 960x960 960x960+0+0 8-bit sRGB 636725B 0.120u 0:00.116 r8pyqbluamqd1.webp WEBP 960x960 960x960+0+0 8-bit sRGB 147152B 0.010u 0:00.013 r8pyqbluamqd1.webp=>r8pyqbluamqd1.webp.png WEBP 960x960 960x960+0+0 8-bit sRGB 1.16213MiB 0.170u 0:00.172
Now the WebP files have their PNG format equivalents to be uploaded to the wiki.
Optimizing PNG images[edit]
ImageMagick converts WebP files to PNG format very quickly, and this makes converted PNG files way bigger than their WebP counterparts. To mitigate such a case, PNG optimizers may be used. Using such tools may be pretty time-consuming but the result PNG files may become smaller (up to 10-15% depending on a specific case). Example of using `optipng`:
$ optipng -o7 -zm1-9 -- *.png
** Processing: BackImage-SideBInSleevewSticker_720x.webp.png
720x720 pixels, 4x8 bits/pixel, RGB+alpha
Input IDAT size = 804850 bytes
Input file size = 806086 bytes
Trying:
zc = 9 zm = 9 zs = 0 f = 0 IDAT size = 803813
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 803305
zc = 9 zm = 9 zs = 0 f = 1 IDAT size = 792370
zc = 9 zm = 9 zs = 0 f = 5 IDAT size = 791493
Selecting parameters:
zc = 9 zm = 9 zs = 0 f = 5 IDAT size = 791493
Output IDAT size = 791493 bytes (13357 bytes decrease)
Output file size = 792441 bytes (13645 bytes = 1.69% decrease)
** Processing: MainFrontImage-SideAInSleevewSticker.webp.png
1500x1500 pixels, 4x8 bits/pixel, RGB+alpha
Input IDAT size = 1846466 bytes
Input file size = 1848088 bytes
Trying:
zc = 9 zm = 9 zs = 0 f = 1 IDAT size = 1806130
zc = 9 zm = 9 zs = 0 f = 2 IDAT size = 1691697
Selecting parameters:
zc = 9 zm = 9 zs = 0 f = 2 IDAT size = 1691697
Output IDAT size = 1691697 bytes (154769 bytes decrease)
Output file size = 1692647 bytes (155441 bytes = 8.41% decrease)