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 » 2016-03-14T10:07:20-07:00

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 » 2016-03-14T21:10:27-07:00

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: 11061
Joined: 2003-05-31T11:32:55-07:00

Re: Pixel Art Scaling Algorithm

Post by magick » 2016-03-16T06:26:13-07:00

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 » 2016-03-16T18:53:34-07:00

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: 25530
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Pixel Art Scaling Algorithm

Post by fmw42 » 2016-03-16T19:01:51-07:00

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