图像处理JSP标签库 JImageTaglib
openkk
14年前
JImageTaglib是个用来处理图片的的标签,在服务器中生成响应的处理图片,可以对图片进行过滤(如转灰度图,边缘查找等)另外还可以用来生成条形码。
使用方法实例:
<jit:image src="/images/test.jpg"> <jit:filter filter="net.sourceforge.jimagetaglib.filter.BlurFilter" /> <jit:resize width="100" height="100" /> </jit:image>
| Original Image (the only one hosted on server) |
| Gray Filter, with border |
| Blur, Posterize, Sharpen and Threshold128 filters |
| BlackAndWhite and Invert filters, resized to width = 90 and height = 50 | |
| Invert and Sharpen filters, resized to max dimension = 70 | |
| Subpart of original image (x = 10, y = 30, width = 40 and height = 50) | |
| InvertYellow Filter, resized to width = 80 (keeps aspect) |
| Resized to max = 180 then subpart of original image (x = 80, y = 100, width = 40 and height = 40) | |
| Emboss filter, applied 2x |