croptool icon indicating copy to clipboard operation
croptool copied to clipboard

Preview is blurry for large PNG files

Open JoKalliauer opened this issue 6 years ago • 3 comments

For large (large high) PNGs the Preview of the Croptool is quite blurry Blurry_croptool

File is from https://commons.wikimedia.org/wiki/File:Python_-data-project-shared-pywikibot-core-generate_user_files-py.png#filehistory

Transfered bug from https://phabricator.wikimedia.org/T219820

JoKalliauer avatar Apr 02 '19 21:04 JoKalliauer

Just the preview or the end result as well?

danmichaelo avatar Apr 06 '19 19:04 danmichaelo

@danmichaelo :

Just the preview. (I change the description.)

The result is lossless https://commons.wikimedia.org/wiki/File:Python_-data-project-shared-pywikibot-core-generate_user_files-py.png#filehistory

I wanted a pixel-precise cut, since I wanted delete some textlines, but still keep some black margin.

JoKalliauer avatar Apr 07 '19 10:04 JoKalliauer

Thanks for clarifying. Yes, I agree that Croptool could be improved to better support pixel-perfect cropping. Perhaps it would help to double the thmbnail size and scale it down, esp. on HiDPI monitors and when zooming. Talking about the zoom, it would be nice if the selection didn't change when zooming, but it's a feature of cropper.js I haven't figured out how to fix yet.

danmichaelo avatar Apr 08 '19 20:04 danmichaelo