Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

real image scaling algorithms? #2

Open
oldlaptop opened this issue Apr 6, 2020 · 0 comments
Open

real image scaling algorithms? #2

oldlaptop opened this issue Apr 6, 2020 · 0 comments
Labels

Comments

@oldlaptop
Copy link
Owner

tkmprand currently scales images with Tk's built-in -zoom/-subsample features, which do dumb nearest-neighbor interpolation and dumb subsampling, respectively; in the unlikely event it ever has to upscale albumart, it'll look blocky and pixelated, and in the (virtually guaranteed) event it has to downscale it, it looks nasty and aliased. Options to fix this include:

  • shell out to imagemagick's convert(1) if detected (present in almost any linux/unix system's package system)
  • interface with TclMagick or some other C extension
  • drag something like https://wiki.tcl-lang.org/page/Shrinking+an+image in (licensing unclear)
  • write image-scaling code from scratch

For the moment I don't care about it enough to consider any of these worthwhile, except possibly a conditional shell-out to convert(1) since that'll be very quick (if dirty) and won't drag more dependency headaches in (building Img from scratch on !debian is bad enough).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant