Page 2 of 2

Re: Pixel Art Scaling Algorithm

Posted: 2016-03-14T10:07:20-07:00
by elmimmo
Any progress on pixel art scaling algorithms?

Re: Pixel Art Scaling Algorithm

Posted: 2016-03-14T21:10:27-07:00
by anthony
Unless someone volunteers to add it to the library, no.

Re: Pixel Art Scaling Algorithm

Posted: 2016-03-16T06:26:13-07:00
by magick
The -magnify option implements pixel art scaling.

Re: Pixel Art Scaling Algorithm

Posted: 2016-03-16T18:53:34-07:00
by anthony
Hmm seems to work well

Code: Select all

convert -size 8x8 pattern:CrossHatch30 -magnify -magnify -magnify show:
compare to direct scaling...

Code: Select all

convert -size 8x8 pattern:CrossHatch30 -scale 800% show:
A little wonky near the edges, but then that should be expected, unless more appropriate -virtual-pixel tile is used for this specific image

Code: Select all

convert -size 8x8 pattern:CrossHatch30 -virtual-pixel tile -magnify -magnify -magnify show:
Could the scaling method (even just a reference link to the method used) be added to the web page...
http://www.imagemagick.org/script/comma ... p?#magnify


Addendum... updated IM Examples (when the update appears online), though I do not know what algorithm was used.
http://www.imagemagick.org/Usage/resize/#magnify

Re: Pixel Art Scaling Algorithm

Posted: 2016-03-16T19:01:51-07:00
by fmw42
Could the details of the scaling method (even just a reference link to the method used) be added to the web page...
I believe it is scale_2x. See

viewtopic.php?f=22&t=23046#p97192
http://scale2x.sourceforge.net/index.html