Class Test

java.lang.Object
org.im4java.test.Test

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

    • Test

      public Test()
      Constructor.
  • Method Details

    • main

      public static void main(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 Exception
      Basic test of convert.
      Throws:
      Exception
    • testConvertBr

      public void testConvertBr() throws Exception
      Throws:
      Exception
    • testOperation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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