I am trying to copy a photo. Before copying it, I must check if the photo has width and height smaller than 10000 px. When it is smaller, I have to resize it to 10000px on the fly and then copy it. How can I do it without saving in memory? Are there some library?
Thanks!