Package org.im4java.test
Class Test
- java.lang.Object
-
- org.im4java.test.Test
-
public class Test extends java.lang.Object
This class implements various tests of the im4java-package.
-
-
Constructor Summary
Constructors Constructor Description Test()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Main-method.void
testAsync()
Test of asynchronous execution.void
testComposite()
Basic test of composite.void
testConvert()
Basic test of convert.void
testConvertBr()
void
testDCRaw()
Test of dcraw.void
testExiftool()
Test of exiftool.void
testGraphicsMagick()
Basic test of GraphicsMagick.void
testIdentify()
Basic test of identify.void
testInfo()
Test image-information retrivial.void
testJpegtran()
Test of jpegtran.void
testMixer()
Test using a channel-mixer.void
testMogrify()
Basic test of mogrify.void
testMontage()
Basic test of montage.void
testNoiseFilter()
Test the noise-filter.void
testOperation()
Test adding operations and suboperations.void
testPipe()
Test piping input and output to an IM command.void
testReadBufferedImage()
Test image-conversion from BufferedImages.void
testUFRaw()
Test of ufraw-batch.void
testWriteBufferedImage()
Test image-conversion to BufferedImages.
-
-
-
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
-
-