Generate thumbnail with ImageTool


/ Published in: Groovy
Save to your folder(s)



Copy this code and paste it in your HTML
  1. ImageTool imgTool = new ImageTool()
  2. imgTool.load($1.getBytes())
  3. imgTool.thumbnail(260)
  4. return imgTool.getBytes("JPEG")

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.