Spriters and Pixel Artists or anyone in between!

9 replies [Last post]
Posts: 89

I just need to know if there's a program or something that could optimize this picture :

I want the biggest one to be as "good looking" as the first one. What I mean is, in the 2nd one, you can see the pixels much more compared to the first one. I'd like to know if there's a program or something that could optimize those pixels without me having to manually fixing it.

Posts: 1691

Well as far as automated sizing goes, you're just looking at testing out different filters. Since that is pixel art, you might want to try some more specialized filters:

http://en.wikipedia.org/wiki/Pixel_art_scaling_algorithms

Posts: 263

hq2x!

Posts: 180

This is a really good blurring technique:

http://www.wayofthepixel.net/pixelation/index.php?topic=7291.msg116922#m...

author=Ai link=topic=7291.msg116922#msg116922 date=1289809593 wrote:
author=Ai link=topic=7291.msg112899#msg112899 date=1278343684 wrote:
* Use GMIC to apply a Difference of Gaussians on a copy of the source image,   to detect areas of high frequency detail like eyes (parameters: 0.05, 0.10, threshold 20, enable 'negative'. * Apply a curve with a point at 93,33 and 192,192 to reduce the amount of smoothing high-detail pixels will get, even more. * Edit->Copy * Enter QMask mode (using keyboard shortcut or the button at bottom-left of your window) and Edit->Paste what you just copied. * Anchor the pasted layer and exit QMask mode. Now, the low-detail pixels are most selected, and high-detail are least selected. * Apply GMIC Anisotropic smoothing (amplitude 8, sharpness .4, gradsmooth 0, tensor smooth 0.50, iterations 2)

FWIW, I have now made this into a custom GMIC filter (thus, interactive preview etc.)
It still needs to support multi-layer application (for animations).
Anyway I'll give the current definition here, as it's short:

#@gimp Antialias: antialias, antialias
#@gimp : note = note("* finetuning")
#@gimp : Detail preservation = float(.30,0,1)
#@gimp : Smoothing = float(8,0.5,1024)
#@gimp : Sharpness = float(.4,0.001,1)
#@gimp : Iterations = int(2,1,32)
#@gimp : Gradient Smoothing* = float(0,0,10)
#@gimp : Tensor Smoothing* = float(0.5,0,10)
#@gimp : Fast Approximation* = bool(1)
#@gimp : DoG base* = float(0.05,0.001,100)
#@gimp : DoG distance* = float(0.05,0.001,100)
#@gimp : DoG threshold* = float(20,0.0001,49.999)
#
#
# XXX some way to adjust DoG parameters
 
antialias :
  -repeat @# -l[@{>}]
    --gimp_dog[-1] $8,{$8+$9},$10,1,0
  # -2? -> -1?
    -input [-2]x1
    -repeat $4 -smooth[-1] $2,$3,1.0,$5,$6,.8,30,2,0,$7 -done
#  # sanitize the DOG layer for masking use
    -normalize[-2] 0,1
    -apply_curve[-2] 1,{93/255},{.73-.73*$1},{192/255},{192/255}
    -image[-3] [-1],0,0,0,0,1,[-2]
    -remove[-2,-1]
    -endlocal
  -done

Paste that into the file ~/.gmic and restart GIMP in order to try it, if you are curious.
Make sure to leave that final blank line in.

EDIT:
I just fixed multi-layer application; here's an overly enthusiastically applied example based on a RagnarokOnline animation:

Original:

Smoothed:

(if this was an animation I was actually making, I'd draw some of the sharpness (eg sleeves) back in as needed)

EDIT2:

Here is a better example:


(zoom helps Smile
(parameters: smooth = 2 sharp = 0 detail = .2 iterations = 1 gradsmooth = .7 tenssmooth = .5)

The current default settings are pretty good, but I'm sure there are better -- If you think you've found better defaults I'd like to hear about it Smile

I think that looks much better the hq2x

Posts: 89

None of them are working right now, downloaded both GMIC and Hq2x but none work Sad. I don't think I went on the wrong website...lol...which websites did you download the programs from?

Wait a minute, downloaded the wrong thing >_>. I was actually on the wrong website, lol.

Posts: 1691

Inf3rnal wrote:
This is a really good blurring technique: ... I think that looks much better the hq2x

That is blurring though - no scaling is going on. Try scaling then applying that blur if you want a relevant comparison.

Posts: 180

I guess. I need to get the plugin working to see how it scales.

Posts: 89

True, Infernal, would you happen to know how to add the code to GIMP so I can blur the picture.
and can anyone send me the link to the hq2x website thingy, google is not being friendly.

Posts: 531

not sure how good it is or anything all i could find though : http://code.google.com/p/hqx/

There are 10 types of people in this world - Those who understand Binary and those who don't.

Posts: 89

aPhRo_ wrote:
not sure how good it is or anything all i could find though : http://code.google.com/p/hqx/

It sadly does not work for me Sad. Thanks anyways.