Add a lossless JPEG cropper

This is more of an MVP, as metadata probably need adjustments.
This commit is contained in:
2022-02-18 18:10:19 +01:00
parent 3ae8be8348
commit 433ede4bf1
4 changed files with 443 additions and 1 deletions

View File

@@ -105,13 +105,21 @@ exe = executable('fiv', 'fiv.c', 'fiv-view.c', 'fiv-io.c',
'fiv-browser.c', 'fiv-sidebar.c', 'fiv-thumbnail.c', 'xdg.c', resources,
install : true,
dependencies : [dependencies])
if gdkpixbuf.found()
executable('io-benchmark', 'fiv-io-benchmark.c', 'fiv-io.c', 'xdg.c',
build_by_default : false,
dependencies : [dependencies, gdkpixbuf])
endif
jpegcrop = executable('fiv-jpegcrop', 'fiv-jpegcrop.c',
install : true,
dependencies : [
dependency('gtk+-3.0'),
dependency('libturbojpeg'),
])
install_data('fiv-jpegcrop.desktop',
install_dir : get_option('datadir') / 'applications')
# XXX: With gdk-pixbuf, this even depends on currently installed modules.
if meson.is_cross_build()
install_data('fiv.desktop',