xinntao / Real-ESRGAN

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.
BSD 3-Clause "New" or "Revised" License
27.09k stars 3.4k forks source link

The output pic has no dpi #256

Open sancdvs opened 2 years ago

xinntao commented 2 years ago

can you provide more info?

sancdvs commented 2 years ago

can you provide more info?

捕获

laocoi commented 1 year ago

I am getting the same issue here, some images have no DPI information in detail. Can we set the DPI for the output image?

sancdvs commented 1 year ago

I am getting the same issue here, some images have no DPI information in detail. Can we set the DPI for the output image?

I resaved the pic to add dpi as below show: PIL.Image.open(opic).save(opic,dpi=(96,96))