diff options
author | Sami Kankaristo <sami@kankaristo.fi> | 2021-12-29 16:53:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 16:53:49 +0200 |
commit | 512e4f8b259ea12808dc98a2f063906b9abd0dff (patch) | |
tree | f60ef00a606a9e27a87e67d7f15f329acbd8e00d /LICENSE | |
parent | 7cbdd92a66e5f0d08672b4b9fc36492a7dc1eed6 (diff) | |
download | ranger-512e4f8b259ea12808dc98a2f063906b9abd0dff.tar.gz |
Add rsvg-convert for SVG previews
`rsvg-convert` works much more reliably for SVGs than ImageMagick's `convert`, which freezes with large SVGs (seems to convert formats first, and resize only after that), and can drop out text during the conversion. Support for SVGs isn't great in ImageMagick, since it's a raster graphics program. `rsvg-convert` only supports conversion to PNG. The image preview works fine with PNGs, but Ranger assumes/requires a .jpg extension, so the file is just renamed from `xxx.jpg.png` to `xxx.jpg`. It's a bit of an ugly hack, but it works, and it's faster than a second image conversion from PNG to JPEG (and vector graphics usually look better with PNG than with JPEG, which is meant more for photos). On Ubuntu and Debian, `rsvg-convert` is in the `librsvg2-bin` package.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions