clonedImage.writeImage(info);
// Quantization
MagickImage quantizedImage = new MagickImage(new ImageInfo(
"pics.jpg"));
QuantizeInfo quantizeInfo = new QuantizeInfo();
quantizeInfo.setColorspace(ColorspaceType.GRAYColorspace);
quantizeInfo.setNumberColors(256);
quantizeInfo.setTreeDepth(4);
System.out.println("QuantizeImage "
+ quantizedImage.quantizeImage(quantizeInfo));
System.out.println("Colors " + quantizedImage.getColors());
System.out.println("Total colors "
+ quantizedImage.getTotalColors());