Usage:

JImageTaglib provides five basic tag libraries.
Let's see the tag "image":

  • image: the base tag for existing images processing, used to read the source (original) image;


  • "image" can contain other tags in its body:

  • filter: used to apply a filter class to an image;
  • resize: used to resize an image, according the provided parameters;
  • subpart: used to show only a part of the original image.


  • Finally, the tag for barcode generation:

  • barcode: used to generate barcode from a numerical code.


  • See here an example for image manipulation:

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

    With this, JImageTaglib will show an image called "test.jpg" with the "Blur" filter applied and resized to width = 100 pixels and height = 100 pixels. A filter can be applied more then on time.

    See here an example for barcode generation:

    <jit:barcode code="01234567890123456789" />

    It will draw a barcode for the specified code.

    See taglib documentation for details.

    Currently available filter classes:
    net.sourceforge.jimagetaglib.filter.BlackAndWhiteFilter net.sourceforge.jimagetaglib.filter.BlurFilter net.sourceforge.jimagetaglib.filter.BlurStrongFilter net.sourceforge.jimagetaglib.filter.CyanalizeFilter net.sourceforge.jimagetaglib.filter.DoubleSizeFilter net.sourceforge.jimagetaglib.filter.EdgeColorFilter net.sourceforge.jimagetaglib.filter.EmbossFilter net.sourceforge.jimagetaglib.filter.GrayFilter net.sourceforge.jimagetaglib.filter.InvertCyanFilter net.sourceforge.jimagetaglib.filter.InvertFilter net.sourceforge.jimagetaglib.filter.InvertMagentaFilter net.sourceforge.jimagetaglib.filter.InvertYellowFilter net.sourceforge.jimagetaglib.filter.LightenFilter net.sourceforge.jimagetaglib.filter.LighterFilter net.sourceforge.jimagetaglib.filter.MagentalizeFilter net.sourceforge.jimagetaglib.filter.OilFilter net.sourceforge.jimagetaglib.filter.PaintingFilter net.sourceforge.jimagetaglib.filter.PosterizeFilter net.sourceforge.jimagetaglib.filter.SharpenFilter net.sourceforge.jimagetaglib.filter.SwapRedBlueFilter net.sourceforge.jimagetaglib.filter.TestFilter net.sourceforge.jimagetaglib.filter.Threshold128Filter net.sourceforge.jimagetaglib.filter.Threshold192Filter net.sourceforge.jimagetaglib.filter.Threshold64Filter net.sourceforge.jimagetaglib.filter.YellowlizeFilter


    Contact:
    contact@fabianofranz.com
    “Imagination is more important than knowledge.” Albert Einstein