Skip to content

About

CompressX — offline file compressor and converter for images, PDFs, video, audio and archives. No uploads, no ads. Linux, Windows and Android.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

CompressX by DhivaLabs

ARM64 builds Linux x64 | arm64 Windows x64 | arm64 Linux: deb | rpm | Arch | AppImage | Flatpak

Offline-first file compressor and converter built with Flutter. Everything runs on-device — no uploads, no ads, no tracking.

Documentation: step-by-step guides at learn.dhivalabs.com: install · beginner guide · troubleshooting. New to the topic? Try the Images and media learning track.

Targets: Linux (x64, arm64), Windows (x64, arm64), Android (single codebase).

Modules

Module What works today Backend
Image Compressor Quality slider, resize, target file size (100 KB–1 MB), EXIF removal, presets (Email/WhatsApp/Instagram/Website/Max/Best), batch, before/after comparison with zoom pure Dart (image), runs in an isolate
Image Converter JPG/PNG/WEBP/GIF/BMP/TIFF/ICO/TGA in → JPG/PNG/GIF/BMP/TIFF/ICO out pure Dart
PDF Tools Images → PDF everywhere; compress (4 levels) and merge on desktop pdf package; Ghostscript/qpdf when installed
Video Compressor Resolution, CRF quality, frame rate, target size, remove audio, format conversion (MP4/MKV/MOV/AVI/WEBM) system FFmpeg (desktop)
Audio Compressor Bitrate, target size, format conversion (MP3/AAC/OGG/FLAC/WAV/M4A) system FFmpeg (desktop)
Archive Create ZIP (optional AES-256 password) / TAR / TAR.GZ from files or folders, extract with password support pure Dart (archive), runs in an isolate
History Per-file log plus totals: files processed, storage saved, most-used type shared_preferences
Settings Light/Dark/System theme, default quality, output folder, keep/delete originals

Batch processing is built into every module — add multiple files and each row shows its own status, sizes, and savings.

Desktop extras

  • Drag-and-drop files onto any picker area.
  • Video/audio and PDF compress/merge shell out to system tools and degrade gracefully with install hints when missing: sudo apt install ffmpeg ghostscript qpdf

Known limitations

  • WEBP and HEIC can be read but not written (the pure-Dart image package has no encoders for them).
  • Target file size mode always outputs JPEG.
  • Video/audio and PDF compression are desktop-only for now; Android support needs an FFmpeg/MuPDF integration.
  • 7Z is not supported (no pure-Dart implementation).

Development

flutter pub get
flutter test          # engine unit tests + phone/desktop layout tests
flutter analyze
flutter build linux   # or: windows, apk

Packaging & CI

Every push to main and every pull request runs the Desktop builds workflow (.github/workflows/desktop.yml): tests, a release build, packaging and a start-up check on Linux x64, Linux arm64, Windows x64 and Windows arm64. Flutter cannot cross-compile desktop apps, so each leg runs on a native runner. Every leg keeps its packages as a workflow artifact:

Platform Files
Linux x64 smart-compress_<version>_amd64.deb, smart-compress-linux-x64.tar.gz
Linux arm64 smart-compress_<version>_arm64.deb, smart-compress-linux-arm64.tar.gz
Other Linux smart-compress-<version>-1.<x86_64|aarch64>.rpm, smart-compress-<version>-1-<x86_64|aarch64>.pkg.tar.zst, Smart-Compress-<version>-<x86_64|aarch64>.AppImage, smart-compress-<version>-<x86_64|aarch64>.flatpak, smart-compress-bin-<version>-aur.tar.gz
Windows x64 smart-compress-windows-x64.zip
Windows arm64 smart-compress-windows-arm64.zip

When a GitHub Release is published, the same workflow attaches all of them to it; a file the release already has is left alone. The Android APK is not built in CI (see below).

Ubuntu .deb locally — after flutter build linux --release:

bash tool/build_deb.sh    # → dist/smart-compress_<version>_<amd64|arm64>.deb
sudo apt install ./dist/smart-compress_1.0.0_amd64.deb   # _arm64.deb on an arm64 machine

The architecture is the one of the machine you build on: build_deb.sh and tool/build_tarball.sh read build/linux/x64/ or build/linux/arm64/ accordingly.

Other Linux distributions — the .rpm, Arch package, AppImage and Flatpak are made from the same .deb, and CI installs and starts each one on its distribution (Fedora and openSUSE Tumbleweed for the .rpm, Arch, Fedora for the AppImage, the Flatpak builder for the Flatpak):

sudo dnf install ./smart-compress-1.0.0-1.x86_64.rpm                          # Fedora, RHEL/Rocky/Alma
sudo zypper install --allow-unsigned-rpm ./smart-compress-1.0.0-1.x86_64.rpm  # openSUSE
sudo pacman -U ./smart-compress-1.0.0-1-x86_64.pkg.tar.zst                    # Arch, Manjaro
chmod +x Smart-Compress-1.0.0-x86_64.AppImage && ./Smart-Compress-1.0.0-x86_64.AppImage
flatpak install --user ./smart-compress-1.0.0-x86_64.flatpak                  # needs the flathub remote
  • The .rpm recommends ffmpeg, Ghostscript and qpdf (dnf installs them with it) and the Arch package lists them as optional dependencies. Fedora's own ffmpeg (ffmpeg-free) has no libx264, which the app uses for MP4, MKV, MOV and AVI video, so those need the full ffmpeg from RPM Fusion; WebM, audio and PDF work with Fedora's packages.
  • The AppImage uses the system's ffmpeg, Ghostscript and qpdf, like the .deb.
  • The Flatpak carries its own ffmpeg (with x264, LAME and Opus), Ghostscript and qpdf, from Ubuntu 24.04, because the sandbox cannot run the system's (see packaging/flatpak/README.md). It needs the GNOME runtime from Flathub (flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo).
  • Everything is built on Ubuntu 24.04; the .rpm asks for the glibc its files use, so dnf and zypper refuse a system that is too old. It is not signed, hence --allow-unsigned-rpm on openSUSE.
  • The AUR recipe (smart-compress-bin, PKGBUILD + .SRCINFO built from the release .deb) is not on the AUR yet.

Windows locally — on a Windows machine with Flutter: flutter build windows --release → build\windows\x64\runner\Release\ (build\windows\arm64\runner\Release\ on an arm64 machine); tool/package_windows.ps1 zips it.

Android APK — flutter build apk --release, output at build/app/outputs/flutter-apk/app-release.apk (signed with the debug key; set up a keystore in android/key.properties before a Play Store release).

Layout: lib/engines/ holds pure processing logic (no Flutter imports, isolate-friendly), lib/core/ app services (settings, history, external tools), lib/features/<module>/ one screen per module, lib/widgets/ shared UI.

Sponsors

Dhiva Labs is an independent, self-funded lab. Sponsorships help bring this project and the rest of Dhiva Labs to every platform, iPhone and Mac included.

Sponsor Dhiva Labs

Monthly sponsors at $10 and up are listed here:

Be the first: sponsor Dhiva Labs.

About

CompressX — offline file compressor and converter for images, PDFs, video, audio and archives. No uploads, no ads. Linux, Windows and Android.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages