I'm trying to create transparent sized proportionally watermark. I've written something like that for beginning. How to make watermark resized proportionally and position it with margins?
IMOperation op = new IMOperation();
CompositeCmd composite = new CompositeCmd();
After that I want to resize whole picture. It can be done with one command?
After two hours of playing I've got it:
op.draw("image Over 50,50 300,300 '"+watermarks.get(site.getPrefix())+"'");
Where 50,50 it's postiion of watermark, and 300,300 is size of watermark. Ufff