Skip to content

A small script to convert your pictures into WebP and videos into mp4

License

Notifications You must be signed in to change notification settings

JustKato/UltimateCompressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UltimateCompressor

Description

A bash script to convert all your video/image files from a folder, into the most efficient way to compress them.

Image Unavailabe

Known Bugs

Right now the compressor can't read the files that have spaces in them, I suggest you run this command in the folder with your files

for f in *; do mv "$f" `echo $f | tr ' ' '_'`; done

Parameters

-i  input, takes a directory
-o  output, takes a directory
-q  quallity, it's only for the webp right now ( higher = better | 0 - 100 )
-v  verbose

Defaults

-i - "./"

-o - "./"

-q - "40"

-v - "0"

Supported file types

  • png
  • jpg
  • flv
  • mp4
  • mov

Tested On

  • Ubuntu 19.04

To-Do

  • png -> Webp Images
  • jpg -> Webp Images
  • mp4 -> mp4 compression
  • flv -> mp4 compression
  • mov -> mp4 compression
  • Detect if png or webp is smaller
  • Custom quallity parameters ( for each format )
  • Parameters to Only convert certain images and video files
  • Learn how to use github
  • Automatically install dependencies
  • Allow nesting

Dependencies

Examples

./ultimateCompressor.sh -i ~/Pictures/memes/ -o ~/Pictures/memes_compressed -q 30  # This is bellow average

./ultimateCompressor.sh -i ~/Pictures/memes/ -o ~/Pictures/memes_compressed -q 0  # It's not going to look too good....

Author Notes

This is one of my first public github projects, if you have any suggestions please don't shy to help me out.

About

A small script to convert your pictures into WebP and videos into mp4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages