圖像處理JSP標簽庫 JImageTaglib

openkk 13年前發布 | 19K 次閱讀 Java 圖形/圖像處理

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.baiduhome.net/lib/view/home/1329210599062

 本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!