cleanEdge
a pixel art upscaling algorithm for clean rotations
mode:
rotation
scaling
rotation
scaling
example images
1
2
3
4
5
upload image
(or drop a file below!)
angle
scale
toggle
(cleanEdge)
slopes
highest color
line width
download rotated
cleanEdge is a pixel art upscaling algorithm designed for rotating sprites. Its goal is to improve the jumbled pixels and broken lines and edges that result from basic nearest neighbor rotation. The way this works is by upscaling the art in a way that prioritizes those lines and edges.
While cleanEdge is designed for sprite rotations, I've taken care to ensure the results when scaling also look nice. You can switch between these two results at the top.

Click and drag/scroll on the frame to rotate/scale the image, or enter the values manually.
Tip: Hold Shift while scrolling to make fine adjustments.

option descriptions:
This version of cleanEdge is in the form of a shader, you can find the source code here!
It's MIT licensed, feel free to use it for any of your projects :)
(if you do, credit is appreciated!)