Reduce the size of SVGs
Oh My SVG let you export unoptimized SVG files into smaller versions.
Under the hood, it uses SVGO to remove or approximate information that is not required for rendering.
It lets you preview and tweak the parameters to obtain a satisfactory result before saving.
Remember that Oh My SVG removes information and metadata that may be useful, do not overwrite your original/source SVG files.
Setup flatpak then
flatpak install re.sonny.OhMySVG
flatpak run re.sonny.OhMySVG
cd OhMySVG
./re.sonny.OhMySVG src/car-lite.svg
Make changes and hit Ctrl+Shift+Q
on the window to restart the application.
To pass the tests you have to install a few dependencies
# Install development dependencies
sudo dnf install --assumeyes npm flatpak make desktop-file-utils gjs gtk4-devel libadwaita-devel
npm install
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user --assumeyes --noninteractive flathub org.freedesktop.appstream-glib
# Run tests
make test
Flathub builds https://flathub.org/builds/#/apps/re.sonny.OhMySVG
meson --prefix $PWD/install build
ninja -C build install
Use GNOME Builder or
flatpak-builder --user --force-clean --install-deps-from=flathub --install flatpak re.sonny.OhMySVG.json
Oh My SVG is powered by SVGO and inspired by SVGOMG.
GPLv3. Please see COPYING file.