dp.addTextInfo(new FixDrawTextItem("1234554321"));
DrawTextRender dtr = new DrawTextRender(rr, dp);
// scale
ScaleParameter param = new ScaleParameter(1024, 1024,
ScaleParameter.Algorithm.AUTO);
ImageRender sr = new ScaleRender(dtr, param);
output = new FileOutputStream(resultFile);
ImageFormat outputFormat = sourceName.endsWith("gif") ? ImageFormat.GIF : ImageFormat.JPEG;
wr = new WriteRender(sr, output, outputFormat);