Pixel Art Scaling Algorithm

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
elmimmo
Posts: 26
Joined: 2011-02-02T05:42:42-07:00
Authentication code: 8675308

Re: Pixel Art Scaling Algorithm

Post by elmimmo »

Any progress on pixel art scaling algorithms?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Pixel Art Scaling Algorithm

Post by anthony »

Unless someone volunteers to add it to the library, no.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Pixel Art Scaling Algorithm

Post by magick »

The -magnify option implements pixel art scaling.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Pixel Art Scaling Algorithm

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Pixel Art Scaling Algorithm

Post 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
Post Reply