In my app I have default image headers for places. When the imagemagick conversion fires, it is dumping the converted files into the same directory as the original file, causing pollution and breaking my apps logic as the default files all have a specific naming convention. readdirSync does not support specifying file patterns and will read all files in the dir.
I want imagemagick to put the converted images into temp or a cache directory away from my originals. How can I do this?