A script for resizing images and videos and a service file that adds an option to use it from Dolphin and Plasma.
The service provides 3 default size options: 10mb, 4mb, 2mb and an option to set you own target size with kdialog.
Note
For image compression the output format will always be webp.
Dependencies:
- bash
- kdialog
- ffmpeg
- imagemagick
Installation options:
- AUR: https://aur.archlinux.org/packages/dolphin-compress-media
- Provided
install.shscript,uninstall.shfor uninstall. - Manually:
compress-mediagoes in~/.local/bin/(or other folder in your PATH)compress-media.desktopgoes in~/.local/share/kio/servicemenus/locale/*(has to be generated usingtranslation/build) goes in~/.local/share/localefor translation of kdialog popups.