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

Allow nearest neighbor algorithm for scaling #59

Open
1 task done
kwrooijen opened this issue Dec 8, 2021 · 0 comments
Open
1 task done

Allow nearest neighbor algorithm for scaling #59

kwrooijen opened this issue Dec 8, 2021 · 0 comments
Labels
feature Adding a new tool to the plugin

Comments

@kwrooijen
Copy link
Contributor

  • Feature request.

Feature request

Currently the scaling metdata is not usable for pixel art, since smoothing is enabled by default. Instead you'd want to use the "Nearest neighbor" algorithm to prevent the art from becoming blurry.

My suggestion would be a global option to choose the scaling method (I doubt pixelart would be combined with regular art).

Workaround:

In the meanwhile for people bumping into this issue, you can use the following script to scale your images. (Requires imagemagick)

#!/bin/bash

for i in $(find -follow -iname "*.png"); do
    convert $i -interpolate Nearest -filter point -resize 3000% $i
done
@razcore-rad razcore-rad added the feature Adding a new tool to the plugin label Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding a new tool to the plugin
Projects
None yet
Development

No branches or pull requests

2 participants