it's a program called FileOptimizer. it's free and open source and it basically allows you to put a file through a bunch of different file optimizers instead of just one. it works on a ton of different file formats, however it tends to break some so i'd recommend to use common sense if it's not just an image file you're optimizing https://nikkhokkho.sourceforge.io/static.php?page=FileOptimizer
oh, also, for SVG's, i recommend instead using SVGOMG, since it tends to produce nicer files with even lower sizes than what FileOptimizer does, but it unfortunately doesn't allow for batch file processing. still super useful though https://jakearchibald.github.io/svgomg/
Since CSS.png is automatically generated by the script, it is useless to upload it manually. Open the corresponding Template page and check the URL that the browser is referring to. You can see that the script references an old version of the image. https://i.imgur.com/ROXblP8.png
alright, hopefully that fixed it! just checked and it's showing up on people's user pages. if it's not for you, lemme know what browser you're using so i can test it there (since i've been using chrome).
Just a note, the issue may be environment-specific, I couldn't reproduce it in my environment (Firefox 71.0). Another user, who I think uses the same browser, couldn't reproduce the issue either. Though I see both versions displaying in Chrome as well.
well, mostly it helps with loading pages or images on slower connections. also it helps anyone who wants to save an image from the wiki by ensuring that it's not unnecessarily bloated, as most pngs are, especially screenshots taken directly from minecraft. all of this is done losslessly btw, so there isn't any downgrade in quality whatsoever. looking at some of the images i've come across, i'm not the first person to do this, and i'm not even the first person to use fileoptimizer to do it. also, a lot of what i've been doing has been editing pictures by cropping them down to the image itself (as some have extra white space or transparent space on them for no reason), making or remaking images transparent (as some of them have been done poorly and have blur around the edges), cropping pictures down to the relevant part of it (especially with gui elements) and cleaning up and properly formatting references (which is something i'll focus on when i've finished up optimizing more images, alongside trying to track down missing version of minecraft and/or screenshots & footage of it).
if you wanna do the same thing, feel free to do so! c:
also, i will say that if people want me to stop optimizing images, or to stop optimizing certain images, i'll be fine with doing so, i just wanna help cleanup a wiki that i've been using for around 8 or so years lol
Well, in my opinion, all people browsing here should not have like 128 Kbps connections any more. A difference of some tens of kilobytes is not that significant unless you want to cram a large number of images on one page, which is rare, at least on this wiki. If that was an issue, then everything should have employed ways to shrink the size down on export/receive already.
Another thing to note is that MediaWiki stores all past revisions of all pages/files. That means when you upload an optimized image, you are taking more storage space in the server rather than saving it. So you should make sure that the size difference between the old image and the new one is reasonable before deciding to upload.
Those are just my few thoughts, if you feel doing this is good then you are perfectly fine to keep doing so.
>cram a large number of images on one page, which is rare, at least on this wiki
No, its not rare at all, look at pages like Spawn egg or Villager. I can just feel my data count getting smaller whenever I'm viewing pages like this when not on wifi, so optimizing is a good idea, especially if its like 3MB→500kB.
Those images found on the pages you mentioned are really small, "optimizing" them will save only very few kilobytes at most, thus in total the size decrease for the whole page still falls under 100 KB. The page that is worth optimizing here is Far lands, full of high-resolution screenshots.
On the other hand, you can count the number of pages with many images on this wiki, including ones with small images like Spawn egg, and divide the number by total pages, I believe the result will be under 2%, or eventually 1%.
stop optimizing shit
[zaps you with optimization beam, making you less bitter]
I like that you optimize images. Thanks. My GIANT file sizes from Blender become tiny :D (Just wanted to say thanks)
you're welcome! ^^
yeet
no
Please you can optimize this image I uploaded? The comment say it's already optimized but I was wrong. Thanks. https://minecraft.gamepedia.com/File:Netherwart_Forest_Red_Big_Trees.png
Whats the fileoptimizer program you use
it's a program called FileOptimizer. it's free and open source and it basically allows you to put a file through a bunch of different file optimizers instead of just one. it works on a ton of different file formats, however it tends to break some so i'd recommend to use common sense if it's not just an image file you're optimizing https://nikkhokkho.sourceforge.io/static.php?page=FileOptimizer
oh, also, for SVG's, i recommend instead using SVGOMG, since it tends to produce nicer files with even lower sizes than what FileOptimizer does, but it unfortunately doesn't allow for batch file processing. still super useful though https://jakearchibald.github.io/svgomg/
Since CSS.png is automatically generated by the script, it is useless to upload it manually. Open the corresponding Template page and check the URL that the browser is referring to. You can see that the script references an old version of the image. https://i.imgur.com/ROXblP8.png
ahhh, that makes sense. thanks for the heads up!
Hey there! For some reason, the Twitter logo isn't showing up correctly. It's used by this userbox: https://minecraft.gamepedia.com/User:007a83/myboxes/ontwitter and this one: https://minecraft.gamepedia.com/Minecraft_Wiki:Userboxes/social-twitter . Multiple people use the two userboxes, so if possible, can you look into the issues with the image? Thank you! ^-^
sure! i think it might be because i changed it to use viewbox scaling instead of a set width & height. gonna see if changing that fixes it! ^^
alright, hopefully that fixed it! just checked and it's showing up on people's user pages. if it's not for you, lemme know what browser you're using so i can test it there (since i've been using chrome).
Just a note, the issue may be environment-specific, I couldn't reproduce it in my environment (Firefox 71.0). Another user, who I think uses the same browser, couldn't reproduce the issue either. Though I see both versions displaying in Chrome as well.
I wonder what are the benefits of optimizing the images on this wiki that you are currently doing...
well, mostly it helps with loading pages or images on slower connections. also it helps anyone who wants to save an image from the wiki by ensuring that it's not unnecessarily bloated, as most pngs are, especially screenshots taken directly from minecraft. all of this is done losslessly btw, so there isn't any downgrade in quality whatsoever. looking at some of the images i've come across, i'm not the first person to do this, and i'm not even the first person to use fileoptimizer to do it. also, a lot of what i've been doing has been editing pictures by cropping them down to the image itself (as some have extra white space or transparent space on them for no reason), making or remaking images transparent (as some of them have been done poorly and have blur around the edges), cropping pictures down to the relevant part of it (especially with gui elements) and cleaning up and properly formatting references (which is something i'll focus on when i've finished up optimizing more images, alongside trying to track down missing version of minecraft and/or screenshots & footage of it).
if you wanna do the same thing, feel free to do so! c:
also, i will say that if people want me to stop optimizing images, or to stop optimizing certain images, i'll be fine with doing so, i just wanna help cleanup a wiki that i've been using for around 8 or so years lol
Well, in my opinion, all people browsing here should not have like 128 Kbps connections any more. A difference of some tens of kilobytes is not that significant unless you want to cram a large number of images on one page, which is rare, at least on this wiki. If that was an issue, then everything should have employed ways to shrink the size down on export/receive already.
Another thing to note is that MediaWiki stores all past revisions of all pages/files. That means when you upload an optimized image, you are taking more storage space in the server rather than saving it. So you should make sure that the size difference between the old image and the new one is reasonable before deciding to upload.
Those are just my few thoughts, if you feel doing this is good then you are perfectly fine to keep doing so.
>cram a large number of images on one page, which is rare, at least on this wiki No, its not rare at all, look at pages like Spawn egg or Villager. I can just feel my data count getting smaller whenever I'm viewing pages like this when not on wifi, so optimizing is a good idea, especially if its like 3MB→500kB.
(In response to Nixiova...)
Those images found on the pages you mentioned are really small, "optimizing" them will save only very few kilobytes at most, thus in total the size decrease for the whole page still falls under 100 KB. The page that is worth optimizing here is Far lands, full of high-resolution screenshots.
On the other hand, you can count the number of pages with many images on this wiki, including ones with small images like Spawn egg, and divide the number by total pages, I believe the result will be under 2%, or eventually 1%.