DEV Community 👩‍💻👨‍💻

Discussion on: Nestjs(fastify, multer). Uploading & cropping image.

sergey_telpuk profile image
Sergey Telpuk Author

To be honest, I made this solution in a hurry. You know, I start thinking about making a library MulterCropper.
You are right about hard-coded config, This solution sucks, As for me the best way is to take it out and pass via a constructor.

Thread Thread
aayani profile image
Wahaj Aayani

It really helped me to say the least. Thank you. That's a nice idea for a library though.