aboutsummaryrefslogtreecommitdiff
path: root/fiv.c
diff options
context:
space:
mode:
Diffstat (limited to 'fiv.c')
-rw-r--r--fiv.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fiv.c b/fiv.c
index 6930479..03db9f7 100644
--- a/fiv.c
+++ b/fiv.c
@@ -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;
}