I've asked for help elsewhere and was given this script
Code: Select all
#!/bin/bash
AMOUNT=$(echo "1.001 - $1" | bc -l)
INFILE=$2
OUFILE=$3
COEFF1=$(echo "100 * $AMOUNT" | bc -l)
COEFF2=$(echo "100 / $AMOUNT" | bc -l)
convert -scale $COEFF1% -scale $COEFF2% $INFILE $OUFILE
Although this method is effective, it changes the dimensions of images that have a dimension that ends in an odd number. Is there a way to reliably pixelate an image with a specified percentage that will not modify the image dimensions?
Also, will ImageMagick ever gain a simple -pixelate option?