So I'm trying to write a simple program that will change the type of an image from a .png to a .tiff using jmagick in java. I followed a tutorial that i found online for different image formats located Here. The program compiles successfully but when I run it I get this message:
Process finished with exit code -1073740940 (0xC0000374)
This is my code:
System.out.println("I'm at 0");
String inputfileName = "C:\\Users\\MySelf\\IdeaProjects\\tess4jTest\\p1.png"; //Input PNG file
ImageInfo info = new ImageInfo(inputfileName); //Get PNG file into ImageInfo object
MagickImage magick_converter = new MagickImage(info); //Create MagickImage object
System.out.println("I'm at 1")
String outputfile = "C:\\Users\\emctiern\\IdeaProjects\\tess4jTest\\p01.tiff"; //Output File name
magick_converter.setFileName(outputfile); //set output file format
magick_converter.writeImage(info); //do the conversion
System.out.println("I'm at 2");
My code never actually reaches the print 1 and 2, I think it might be that its not sure where to get the file from, That's why I entered the the full file path. In the tutorial I followed they just had the image name and nothing else. Thanks in advance