Yuriy-Svetlov/compress-images ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Node.js tool that takes a folder of images and compresses them into an output folder, keeping support for jpg, jpeg, png, svg, and gif.
I want it to let me point at input patterns like a whole images folder, then choose different compression methods for each file type, and optionally combine multiple passes if that helps reduce size more. It should show a simple summary of what got processed, save an error log when something fails, and let me fall back to an alternate method if one compressor errors out.
Please include a basic example in the project so I can see how to use it on my own images, and make sure it works cleanly from Node with a single main function I can call from another script. If you need to check current docs for any image compression tools, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit