From 6d72684048fb0d1e70fdb8a48b9062eb4b713d18 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 29 May 2013 22:38:25 +0200 Subject: add comment to png file --- cqrlogo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cqrlogo.c') diff --git a/cqrlogo.c b/cqrlogo.c index 1e51bfc..45c006d 100644 --- a/cqrlogo.c +++ b/cqrlogo.c @@ -105,7 +105,8 @@ int main(int argc, char **argv) { printf("Content-Type: image/png\n\n"); /* print PNG data */ - gdk_pixbuf_save_to_buffer (pixbuf, &buffer, &size, "png", NULL, NULL); + gdk_pixbuf_save_to_buffer (pixbuf, &buffer, &size, "png", NULL, + "tEXt::comment", "QR-Code created by cqrlogo - https://github.com/eworm-de/cqrlogo", NULL); fwrite (buffer, 1, size, stdout); if (rc) -- cgit v1.2.3-54-g00ecf