Class Im4javaImageTool

    • Constructor Detail

      • Im4javaImageTool

        public Im4javaImageTool()
    • Method Detail

      • isActivated

        public boolean isActivated()
        Description copied from interface: ImageTool
        Indicates if image tools are available
        Returns:
      • convert

        protected void convert​(File source,
                               File destination,
                               Map<Class<AbstractImageToolOption>,​AbstractImageToolOption> options,
                               Set<ImageToolDirective> directives)
                        throws SilverpeasException
        Description copied from class: AbstractImageTool
        Convert an image with dimensions and options directives
        Specified by:
        convert in class AbstractImageTool
        Parameters:
        source - mandatory (if it not exists, no exception is generated and the process stops)
        destination - if destination is not specified, the destination file is the same as the source
        options - permits specifying multiple additional working options : - DIMENSION : resizing the image - BACKGROUND : setting a background color
        directives - it is possible to specify some additional directives : - PREVIEW_WORK : the conversion concerns an preview result - GEOMETRY_SHRINK : shrinks images with dimension(s)
        Throws:
        SilverpeasException