elixir-mogrify / mogrify

Image processing in Elixir (ImageMagick command line wrapper)
MIT License
570 stars 65 forks source link

Report progress using `-monitor` #117

Open Munksgaard opened 8 months ago

Munksgaard commented 8 months ago

Imagemagick supports the -monitor flag for reporting progress when converting files. The output looks something like this:

$ magick convert -monitor -auto-orient myfile.png myfile.webp
load image/[myfile.jpeg]: 1223 of 1224, 100% complete
save image/[blab.webp]: 1223 of 1224, 100% complete
encode image[blab.webp]: 0 of 100, 00% complete

Would it be possible to hook into this monitoring and expose it in this library somehow?