marcdacz / compare-pdf

Standalone node module that compares pdfs
MIT License
62 stars 21 forks source link

Empty diffPngs directories #25

Closed ngmiduc closed 2 years ago

ngmiduc commented 2 years ago

Hi,

after running with the config: cleanPngPaths = true, it deletes the actual and expected file paths but not the diffs. I will end up with a lot of empty folders.

Is this expected or a bug?

Screenshot 2022-05-31 at 20 33 33

It would be nice maybe to have a possibility to name the diffPng folder, so it is easier to find the folder for the failed comparisons.

marcdacz commented 2 years ago

Thanks for raising this. I believe this is an expected behaviour as we would like to retain the results post test execution. The diff folder is configurable but the diff png file is based on your actual pdf filename. Is it possible for you to change your actual pdf filename to a more static one?