more updates

This commit is contained in:
MathMan05 2024-07-31 13:25:58 -05:00
parent 2beb57817d
commit d560d7d426

View file

@ -5,18 +5,30 @@ This is for in the future when I want to compress more images or anyone else for
good at reducing the pallet, a first step for images that have a limited number of colors, bad at actually compressing things though, for all formats tested. good at reducing the pallet, a first step for images that have a limited number of colors, bad at actually compressing things though, for all formats tested.
## PNGs: ## PNGs:
good ratios, though not as good as other options, though better compatibility
### pngcrush ### pngcrush
Good, but should be ran before optipng, but isn't as good as it, use in tandom Good, but should be ran before optipng, but isn't as good as it, use in tandom
### optipng ### optipng
The best tool to really shrink pngs to be as small as they can be. The best tool to really shrink pngs to be as small as they can be.
## WEBP ## WEBP
it's better than png, though I have a feeling more could be done to compress these
### ffmpeg ### ffmpeg
so far this seems to be the best way to compress webp images with a command that kinda looks like this one so far this seems to be the best way to compress webp images with a command that kinda looks like this one
``` ```bash
ffmpeg -i input.webp -c:v libwebp -lossless 1 -q:v 100 -compression_level 6 output.webp ffmpeg -i input.webp -c:v libwebp -lossless 1 -q:v 100 -compression_level 6 output.webp
``` ```
it's better than png, though I have a feeling more could be done
## AVIF
As far as I can tell, this format just sucks at its job, at least for lossless images
## JPEGXL
Really good at compression size, though it's not supported anywhere outside of safari as of now.
### cjxl
this command should do the trick for compressing
```bash
cjxl input.png output.jxl -q 100 -e 10
```
# Vector # Vector