tam kodu paylassan daha iyi olur. async/await ve fs.writeFileSync yerine sharp.toFİle() kullanmakta fayda var.