title: Rotate images without saving the whole image in memory
body: <p>I'm saving a large PNG file (40000 x 3000) using <a href="https://code.google.com/archive/p/pngj/" rel="nofollow noreferrer">PNGJ</a> library. Now I need to rotate the image 90 degrees to the right without saving the whole image in memory. PNGJ library is limited to write images line by line, so I can't rotate each line and write the imagem column by column.</p>
  
  <p>Is there any way to do that?</p>