It is currently Tue Mar 28, 2017 10:25 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Scale2X-PLUS
PostPosted: Thu Jan 23, 2014 2:32 pm  (#1) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
Here's my latest script:

Scale2X-PLUS

http://gimpscripts.com/2014/01/scale2x-plus/

It's basically a Scale2X-algorithm, but modified to work better with 24-bit RGB images. The original Scale2X algorithm has the problem that it only works well with indexed bitmaps, as it compares each pixel to it's neighbours with simple == or != operators.

So I added in a treshold setting, now pixels are considered the "same" if their difference doesn't go above the difference treshold. Basically, the more colourful the image, the higher the treshold setting should be. It may take some trial and error to find the optimal setting.

The algorithm still works best for computer-generated bitmap images, and not so good for photos. Not only because of quality, but also because it's kind of slow - larger images take a very long time. I've tried to optimize it but it's still kinda slow... I may try to optimize it further in the future.

For now, it's a pretty good plugin for resizing smallish bitmaps eg. icons, sprites and such.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group