Skip to content

Commit

Permalink
Fix .pdf gotcha
Browse files Browse the repository at this point in the history
  • Loading branch information
za3k committed Sep 14, 2022
1 parent 9f0cbc7 commit 1ea287a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zbarimg/zbarimg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1ea287a

Please sign in to comment.