Be careful running this on an untrusted directory, especially with e.g. pdfs, just like anything else that parses images, especially using ImageMagick.
If I open my (untrusted) downloads folder using Gnome Files and it displays (and therefore parses) the contained images, is that a security issue I should be concerned about?
(I would have assumed that (e.g.) Javascript in PDFs could be problematic, but not a simple preview.)
https://github.blog/2023-10-09-coordinated-disclosure-1-clic...
0: https://www.cvedetails.com/vulnerability-list/vendor_id-7294...