From 03fb75221c36ff773379eb5f018d7206f1ef30c9 Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 24 Aug 2015 17:36:57 -0700 Subject: [PATCH] gif2webp: print output file size Change-Id: I6ce367baa209911f1c07d23ca6283fcb3fe1d7a4 --- examples/gif2webp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/gif2webp.c b/examples/gif2webp.c index df27c1a6..c90bed96 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -503,11 +503,13 @@ int main(int argc, const char *argv[]) { goto End; } if (!quiet) { - fprintf(stderr, "Saved output file: %s\n", out_file); + fprintf(stderr, "Saved output file (%d bytes): %s\n", + (int)webp_data.size, out_file); } } else { if (!quiet) { - fprintf(stderr, "Nothing written; use -o flag to save the result.\n"); + fprintf(stderr, "Nothing written; use -o flag to save the result " + "(%d bytes).\n", (int)webp_data.size); } }