diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-02-20 19:43:21 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-02-20 21:14:33 +0100 |
commit | 04ec292caf2ec2aa1e6a694996fefa6ec3b5ff6b (patch) | |
tree | 98ae92f877537656d49e72d6ecdf0c1efcfd969a /fiv.c | |
parent | a28fbf25bcec03ae8cb8e6b22537883f78541d66 (diff) | |
download | fiv-04ec292caf2ec2aa1e6a694996fefa6ec3b5ff6b.tar.gz fiv-04ec292caf2ec2aa1e6a694996fefa6ec3b5ff6b.tar.xz fiv-04ec292caf2ec2aa1e6a694996fefa6ec3b5ff6b.zip |
Make thumbnailers pass back raw images
Diffstat (limited to 'fiv.c')
-rw-r--r-- | fiv.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1822,9 +1822,14 @@ main(int argc, char *argv[]) exit_fatal("unknown thumbnail size: %s", thumbnail_size); GFile *target = g_file_new_for_commandline_arg(path_arg); - if (!fiv_thumbnail_produce(target, size, &error)) + cairo_surface_t *surface = NULL; + if (!fiv_thumbnail_produce(target, size, &surface, &error)) exit_fatal("%s", error->message); g_object_unref(target); + if (surface) { + fiv_io_serialize_to_stdout(surface); + cairo_surface_destroy(surface); + } return 0; } |