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:
      • getImageInfo

        public String[] getImageInfo​(File source,
                                     ImageInfoType... infoTypes)
                              throws org.silverpeas.kernel.SilverpeasException
        Description copied from interface: ImageTool
        Gets aimed information from the given image file.
        Parameters:
        source - the image file.
        infoTypes - the aimed types of info.
        Returns:
        Throws:
        org.silverpeas.kernel.SilverpeasException
      • convert

        protected void convert​(File source,
                               File destination,
                               Map<Class<AbstractImageToolOption>,​AbstractImageToolOption> options,
                               Set<ImageToolDirective> directives)
                        throws org.silverpeas.kernel.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:
        org.silverpeas.kernel.SilverpeasException