Menu

#417 t/131_save_tiff.t fails with imagemagick 7.1.1-5

v1.0_(example)
closed-fixed
nobody
None
5
2023-04-01
2023-03-27
pacien
No

gscan2pdf 2.13.2
imagemagick 7.1.1-5

Test log snippet:

Failed test 'valid TIFF created'

at t/131_save_tiff.t line 44.

'test.tif TIFF 70x46 70x46+0+0 8-bit sRGB 10024B 0.000u 0:00.000

'

doesn't match '(?^:test.tif TIFF 70x46 70x46+0+0 8-bit sRGB [7|9][.\d]+K?B)'

The reported size seems to have changed between magick 7.1.1-4 and 7.1.1-5.
Unsure whether this is normal or not, but this makes this test fail.

The regular expression also seems to use a character class instead of an
alternation (thus accepting the pipe character). This might not have been
intended.

Downstream packaging issue:
https://github.com/NixOS/nixpkgs/issues/223446

Discussion

  • Jeffrey Ratcliffe

    Thanks for the report. Apologies for the delay in replying. The TIFF is still likely valid, so I'll adjust the test to not check the file size.

     
  • Jeffrey Ratcliffe

    I committed the fix. You should see it in the next release.

     
  • Jeffrey Ratcliffe

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB