图像处理JSP标签库 JImageTaglib

openkk 13年前

JImageTaglib是个用来处理图片的的标签,在服务器中生成响应的处理图片,可以对图片进行过滤(如转灰度图,边缘查找等)另外还可以用来生成条形码。

使用方法实例:

<jit:image src="/images/test.jpg">     <jit:filter filter="net.sourceforge.jimagetaglib.filter.BlurFilter" />     <jit:resize width="100" height="100" />  </jit:image> 

图像处理JSP标签库 JImageTaglib Original Image (the only one hosted on server)
图像处理JSP标签库 JImageTaglib Gray Filter, with border
图像处理JSP标签库 JImageTaglib Blur, Posterize, Sharpen and Threshold128 filters
图像处理JSP标签库 JImageTaglib BlackAndWhite and Invert filters, resized to width = 90 and height = 50
图像处理JSP标签库 JImageTaglib Invert and Sharpen filters, resized to max dimension = 70
图像处理JSP标签库 JImageTaglib Subpart of original image (x = 10, y = 30, width = 40 and height = 50)
图像处理JSP标签库 JImageTaglib InvertYellow Filter, resized to width = 80 (keeps aspect)
图像处理JSP标签库 JImageTaglib Resized to max = 180 then subpart of original image (x = 80, y = 100, width = 40 and height = 40)
图像处理JSP标签库 JImageTaglib Emboss filter, applied 2x

项目主页:http://www.open-open.com/lib/view/home/1329210599062