Search code examples
imagemagickmogrify

Increase images size using linear resampling via shell


How I can convert an entire image folder of pixel art images to double size without blur pixels ? I try with mogrify but blurs the inside of images. ( border works)


Solution

  • Usually to preserve pixels without blurring, you would use -scale or -sample. There are great examples and detailed explanations in the usage documentation.

    mogrify pixels/*.png -scale 100x100 -path ./scale
    

    pixel scale

    mogrify pixels/*.png -sample 100x100 -path ./sample
    

    pixel sample