This is a Gimp plugin that uses Python to re-implement Scalex algorythm. This plugins come with an extra, Scale2Ex that combine scale2x and gimp dilate plugin.
Scale2x is real-time graphics effect able to increase the size of small bitmaps guessing the missing pixels without interpolating pixels and blurring the images.
It was originally developed for the AdvanceMAME project in the year 2001 to improve the quality of old games with a low video resolution.
The Scale2x effect was developed by Andrea Mazzoleni in the year 2001 for the project AdvanceMAME.
The effect works repeating a computation pattern for every pixel of the original image. The pattern starts from a square of 9 pixels and expands the central pixel computing 4 new pixels.
Starting from this pattern :
The central pixel E is expanded in 4 new pixels:
with these rules (in C language) :
E0 = D == B && B != F && D != H ? D : E; E1 = B == F && B != D && F != H ? F : E; E2 = D == H && D != B && H != F ? D : E; E3 = H == F && D != H && B != F ? F : E;
You are allowed to use the Scale2x implementations in your program if it’s released with the GPL license, or alternatively under all the following conditions:
- the program is not used in commercial activities.
- the whole source code of the program is released with the binary.
- derivative works of the program are allowed.
Instead, you are free to use the algorithm, but please call the effect “Scale2x”.
To install Gimp plugins, you need to copy the scale2x file to Gimp plugin folder, in Windows, will be similar to it:
C:\Document and Settings\<username>\.gimp-2.6\plug-ins\
You have to remenber that Windows don’t come with Python support, you need to install it, the link above is a tutorial teaching how to do this: http://www.gimpusers.com/tutorials/install-python-for-gimp-2-6-windows.html (em inglês).
In Linux (Ubuntu in my case ) normally will be in .
Once loaded, the plug-in can be found in Filters – Artistic.
I hope you enjoy!
The plugin is registered in Gimp Registry : http://registry.gimp.org/node/24746
Se você esta procurando a versão em português do Brasil, clique aqui.