Class Test


  • public class Test
    extends java.lang.Object
    This class implements various tests of the im4java-package.
    • Constructor Detail

      • Test

        public Test()
        Constructor.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Main-method. You can either pass the number(s) of the test or the string "all" for all tests.
      • testConvert

        public void testConvert()
                         throws java.lang.Exception
        Basic test of convert.
        Throws:
        java.lang.Exception
      • testConvertBr

        public void testConvertBr()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testOperation

        public void testOperation()
                           throws java.lang.Exception
        Test adding operations and suboperations.
        Throws:
        java.lang.Exception
      • testMontage

        public void testMontage()
                         throws java.lang.Exception
        Basic test of montage.
        Throws:
        java.lang.Exception
      • testMixer

        public void testMixer()
                       throws java.lang.Exception
        Test using a channel-mixer.
        Throws:
        java.lang.Exception
      • testMogrify

        public void testMogrify()
                         throws java.lang.Exception
        Basic test of mogrify. Note that mogrify uses operators in prefix-notation!
        Throws:
        java.lang.Exception
      • testIdentify

        public void testIdentify()
                          throws java.lang.Exception
        Basic test of identify.
        Throws:
        java.lang.Exception
      • testComposite

        public void testComposite()
                           throws java.lang.Exception
        Basic test of composite. composite -blend {src_percent}x{dst_percent} overlay bgnd result
        Throws:
        java.lang.Exception
      • testInfo

        public void testInfo()
                      throws java.lang.Exception
        Test image-information retrivial.
        Throws:
        java.lang.Exception
      • testNoiseFilter

        public void testNoiseFilter()
                             throws java.lang.Exception
        Test the noise-filter. Note that the sample images are just too small to really see the effect.
        Throws:
        java.lang.Exception
      • testPipe

        public void testPipe()
                      throws java.lang.Exception
        Test piping input and output to an IM command.
        Throws:
        java.lang.Exception
      • testReadBufferedImage

        public void testReadBufferedImage()
                                   throws java.lang.Exception
        Test image-conversion from BufferedImages.
        Throws:
        java.lang.Exception
      • testWriteBufferedImage

        public void testWriteBufferedImage()
                                    throws java.lang.Exception
        Test image-conversion to BufferedImages. Note that we need an OutputConsumer to pipe the result to the BufferedImage.
        Throws:
        java.lang.Exception
      • testGraphicsMagick

        public void testGraphicsMagick()
                                throws java.lang.Exception
        Basic test of GraphicsMagick.
        Throws:
        java.lang.Exception
      • testJpegtran

        public void testJpegtran()
                          throws java.lang.Exception
        Test of jpegtran.
        Throws:
        java.lang.Exception
      • testAsync

        public void testAsync()
                       throws java.lang.Exception
        Test of asynchronous execution.
        Throws:
        java.lang.Exception
      • testUFRaw

        public void testUFRaw()
                       throws java.lang.Exception
        Test of ufraw-batch.
        Throws:
        java.lang.Exception
      • testExiftool

        public void testExiftool()
                          throws java.lang.Exception
        Test of exiftool.
        Throws:
        java.lang.Exception
      • testDCRaw

        public void testDCRaw()
                       throws java.lang.Exception
        Test of dcraw.
        Throws:
        java.lang.Exception