g.setColor(new Color(100, 100, 100));
g.drawString(wmText, x + 2, y + 2);
g.setColor(new Color(240, 240, 240));
g.drawString(wmText, x, y);
}
ImageProcessor ip = new ImagePlus("temp", img).getProcessor();
// if the inputMimeType is image/gif, need to convert to RGB in any case
if (inputMimeType.equals("image/gif")) {
ip = ip.convertToRGB();
alreadyConvertedToRGB = true;
}