Resizing

Resizing tiny images can give rise to any number of non-linear ramps. The general idea is to -input a tiny image specification and then scale it using a high quality interpolation method. See -input for the notational details of specifying tiny images and also -resize2dx for getting high quality interpolation methods.

#Set a 3x3 matrix of colored squares; \
#resize to 256 with cubic interpolation \
gmic '(136,239,246;'\
'34,198,239;'\
'34,34,136^'\
'234,225,242;'\
'154,20,225;'\
'154,154,234^'\
'8,0,173;'\
'59,57,0;'\
'148,59,8'\
')' -resize2dx 256,5

Blurring General Ramps