From 1ea287aa6e5c7a5544117da61b40fb8f2e71fa32 Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Tue, 13 Sep 2022 21:04:13 -0400 Subject: [PATCH] Fix .pdf gotcha --- zbarimg/zbarimg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zbarimg/zbarimg.c b/zbarimg/zbarimg.c index 195bb249..700fe830 100644 --- a/zbarimg/zbarimg.c +++ b/zbarimg/zbarimg.c @@ -167,6 +167,10 @@ static int scan_image(const char *filename) int found = 0; MagickWand *images = NewMagickWand(); + + // default is a measly 72dpi for pdf + MagickSetResolution(images, 300, 300); + if (!MagickReadImage(images, filename) && dump_error(images)) return (-1);