Step 4:
Run PNGoo.exe (contained in the extracted folder)
Step 5:
Prepare the PNG files you need to optimize. I needed to optimize the PNG files that were in the textures > blocks folder. So I places the blocks folder on my desktop for easy access.
Step 6:
In PNGoo, under the output section select “Output to Same Director (Overwrite PNGs)”
Step 7:
Click “Add Files” and select the images you want to optimize (press CTRL + A to select all). The larger the images, the more processing power it will take. So if you don’t have a high end computer don’t try optimizing to many large images at once.
Step 8:
Click “Go” and PNGoo will compress the PNG files you selected.
Step 8:
Place the optimized images back into your resource pack. Now your done!
After optimizing my resource pack Firewolf it was 50% the original size!
If I was running windows I'd be happy to try this program, but I'm unsure if it's WINE compatible.
For Linux try Trimage (it should be in the USC if you're still using Ubuntu or a derivative).
Warnings though:
Don't optimize truly gray images (it'll make them grayscale, which Minecraft won't render properly because of a bug). For this instead manually set the image to indexed inside your image editor (in GIMP it's smart to uncheck all of the export options that basically add useless data that would be scrubbed off anyways).
Don't optimize partially transparent images. If you do, the data is still their in the metadata or something like that (will show up in-game, will be gone in your image editor until you switch it back to RGB)... HOWEVER if you optimize it again that data will be removed!
I've told you about this before, haven't I?
Rollback Post to RevisionRollBack
"I'm an outsider by choice, but not truly.
It’s the unpleasantness of the system that keeps me out.
I’d rather be in, in a good system. That’s where my discontent comes from:
being forced to choose to stay outside.
My advice: Just keep movin’ straight ahead.
Every now and then you find yourself in a different place."
-George Carlin
Benefits:
– Faster load time and more FPS for end user
Do you know this experimentally, or are you just assuming?
My understanding is that it shouldn't have any benefit once the PNG is in memory-- unless you are decreasing color depth (which might be fine for some packs with few colors, but is not for packs that aren't pixel art)
It seems like in every open source project i've worked on, at least once some guy will come along and try to "improve" things, but running the .PNGs through some lossy compression that hurts the quality. There are lots of apps that do this -- don't know if yours is one or not.
Yeah, I compress my PNGs, but I make sure it is lossless.
This program uses lossy compression to reduce file size. You will reduce the quality of the texture, but it will not be noticeable. I keep my original files uncompressed and only compress the files I release for download.
As for the statements I made earlier:
- Faster load time (based on observation): It look less time for Minecraft to load the resource pack.
- More FPS (theoretical): As the resource pack files are smaller, theoretically this would take up less system resources. However, because most resource packs take up hardly any space and they can be loaded quickly once in the RAM (like you said), the FPS increase would not be noticeable, and in most cases non-existent. I will remove the statement as it was incorrect.
Yeah, but Trimage didn't seem to work for me, always crashed out... (could have been just that version with whatever updates to this version of ubuntu but however, I've not tried again recently myself.)
I have been surprized in the past multiple times at the obvious-to-me loss of quality that other people have assured me would be "not noticiable".
If you compress an image too much you are obviously going to have a smaller file size with reduced quality. This program I used seems to work nicely though. I haven't seen any noticeable differences in quality with my compressed textures.
If you compress an image too much you are obviously going to have a smaller file size with reduced quality. This program I used seems to work nicely though. I haven't seen any noticeable differences in quality with my compressed textures.
Yeah, no. I tried this once with my pack, and any image compression on 128x creates a noticeable drop in quality in the images. You probably can't notice the dithering on low-res or pixel art packs, but with something that's hand drawn with smoother colours and cel-shading, you can see the dithering clear as day.
I'd honestly rather lose a few downloads to people who know they can't play a high-res pack, than have them download ugly images they can still barely play because it saved them half a megabyte in the download.
originally posted here: http://keitsuprojects.com/optimize-your-minecraft-resource-pack-easily/
Hi everyone,
I found a good way to optimize resource packs though file compression. If you aren’t using file compression for your resource packs, you should be!
Benefits:
– Faster load time for end user
– Faster download time for end user
– Reduce file size up to 70 percent!
Step 1:
Visit: https://pngquant.org/
Step 2:
Download the appropriate program that is compatible with your OS.
Windows: PNGoo (recommended) or Pngyu
Mac OS X: Pngyu
Step 3 and onward will be based on PNGgoo specific as that is the program I use for my resource pack.
Step 3:
Extract the .zip folder (right click > extract all)
Step 4:
Run PNGoo.exe (contained in the extracted folder)
Step 5:
Prepare the PNG files you need to optimize. I needed to optimize the PNG files that were in the textures > blocks folder. So I places the blocks folder on my desktop for easy access.
Step 6:
In PNGoo, under the output section select “Output to Same Director (Overwrite PNGs)”
Step 7:
Click “Add Files” and select the images you want to optimize (press CTRL + A to select all). The larger the images, the more processing power it will take. So if you don’t have a high end computer don’t try optimizing to many large images at once.
Step 8:
Click “Go” and PNGoo will compress the PNG files you selected.
Step 8:
Place the optimized images back into your resource pack. Now your done!
After optimizing my resource pack Firewolf it was 50% the original size!
If I was running windows I'd be happy to try this program, but I'm unsure if it's WINE compatible.
There probably is some type of PNG image compression software out there that would be wine compatible.
For Linux try Trimage (it should be in the USC if you're still using Ubuntu or a derivative).
Warnings though:
Don't optimize truly gray images (it'll make them grayscale, which Minecraft won't render properly because of a bug). For this instead manually set the image to indexed inside your image editor (in GIMP it's smart to uncheck all of the export options that basically add useless data that would be scrubbed off anyways).
Don't optimize partially transparent images. If you do, the data is still their in the metadata or something like that (will show up in-game, will be gone in your image editor until you switch it back to RGB)... HOWEVER if you optimize it again that data will be removed!
I've told you about this before, haven't I?
"I'm an outsider by choice, but not truly.
It’s the unpleasantness of the system that keeps me out.
I’d rather be in, in a good system. That’s where my discontent comes from:
being forced to choose to stay outside.
My advice: Just keep movin’ straight ahead.
Every now and then you find yourself in a different place."
-George Carlin
Do you know this experimentally, or are you just assuming?
My understanding is that it shouldn't have any benefit once the PNG is in memory-- unless you are decreasing color depth (which might be fine for some packs with few colors, but is not for packs that aren't pixel art)
It seems like in every open source project i've worked on, at least once some guy will come along and try to "improve" things, but running the .PNGs through some lossy compression that hurts the quality. There are lots of apps that do this -- don't know if yours is one or not.
Yeah, I compress my PNGs, but I make sure it is lossless.
• Follow Lithos on Twitter for release announcments
* Join the Lithos Discord for previews and to help
Hi Eleazzaar,
This program uses lossy compression to reduce file size. You will reduce the quality of the texture, but it will not be noticeable. I keep my original files uncompressed and only compress the files I release for download.
As for the statements I made earlier:
- Faster load time (based on observation): It look less time for Minecraft to load the resource pack.
- More FPS (theoretical): As the resource pack files are smaller, theoretically this would take up less system resources. However, because most resource packs take up hardly any space and they can be loaded quickly once in the RAM (like you said), the FPS increase would not be noticeable, and in most cases non-existent. I will remove the statement as it was incorrect.
Yeah, but Trimage didn't seem to work for me, always crashed out... (could have been just that version with whatever updates to this version of ubuntu but however, I've not tried again recently myself.)
I have been surprized in the past multiple times at the obvious-to-me loss of quality that other people have assured me would be "not noticiable".
• Follow Lithos on Twitter for release announcments
* Join the Lithos Discord for previews and to help
If you compress an image too much you are obviously going to have a smaller file size with reduced quality. This program I used seems to work nicely though. I haven't seen any noticeable differences in quality with my compressed textures.
Qusetion: What resolution packs did you test it on? 16x 32x 64x....?
Yeah, no. I tried this once with my pack, and any image compression on 128x creates a noticeable drop in quality in the images. You probably can't notice the dithering on low-res or pixel art packs, but with something that's hand drawn with smoother colours and cel-shading, you can see the dithering clear as day.
I'd honestly rather lose a few downloads to people who know they can't play a high-res pack, than have them download ugly images they can still barely play because it saved them half a megabyte in the download.
I tested in on 128x and 512px.