Questions tagged [im4java]

The library im4java provides a pure-java interface to ImageMagick, GraphicsMagick and other popular commandline tools like jpegtran, ufraw, dcraw, exiftool. The im4java-engine permits the addition of new tools in a very short time (less than an hour)

The basic architecture of im4java is quite simple. It boils down to calling all underlying tools simply by using a ProcessBuilder-object. All the magic of im4java ist to hide the complexities. If you have just one simple call of an external tool in your program, you might be better of by hardcoding the ProcessBuilder-call yourself. If you don't need the simplicity or the advanced features of the im4java-library, your code will certainly be faster and more efficient.

73 questions
1
vote
0 answers

org.im4java.core.CommandException: java.io.IOException: Cannot run program "gm": error=23, Too many open files in system

I use Image4j and graphicsmagick to cut image,but crashed wen i deploye my app in linux. This is the exception: 2015-04-14/15:26:46.712/CST [http-nio-8089-exec-47] ERROR org.im4java.core.CommandException: org.im4java.core.CommandException: gm…
1
vote
3 answers

im4java FileNotFoundException

When I use ImageMagick+im4java in eclipse, I always has this error: Exception in thread "main" org.im4java.core.CommandException: java.io.FileNotFoundException: convert at org.im4java.core.ImageCommand.run(ImageCommand.java:219) at…
Xinyun Lv
  • 11
  • 1
  • 3
1
vote
1 answer

Why this im4java gives exception in java

I want to provide my clients the ability to resize and watermark images in an application developed with Java. After searching the Internet, I have provided the im4java library with my application by simply adding it. I saw different articles and…
user4099884
1
vote
1 answer

ImageMagick: converting piped images

I'm attempting to convert an image in an inputstream to an outputstream using im4java. FRom the docs, it looks like setting an inputProvider as the input and specifying an output stream should pipe the converted image, but i get a: Failed to convert…
roguequery
  • 964
  • 13
  • 28
1
vote
1 answer

GraphicsMagick crop: shows what will be cropped

I'm working on a photo application and I need some advice how should I solve the following with Graphics/ImageMagick. Given a photo with resolution: 2048x1536 Given a specified resolution: 1864x1228 Resize the image and fill the specified…
1
vote
1 answer

Benchmarking the performance of im4java

I am using im4java in my project for various image processing techniques such as cropping, resizing, filling and rotating. Before this I was using the java.lang.Runtime.exec to run commands in the command prompt. Now when I bench marked the two…
gursahib.singh.sahni
  • 1,559
  • 3
  • 26
  • 51
1
vote
1 answer

im4java convert to jpg, image crash

I want to convert images from gif to jpeg by using im4java. There should be one gif and one ipeg picture after excution. But when I'v done this. There are 3 pictures. One is original gif, one is new nomarl jpeg, and other one is a crashed jpeg…
1
vote
1 answer

Opening SWT Image in im4java

I have a SWT application where the user can drag and drop images onto a canvas. After dropping I keep track of the image in an SWT.graphics.Image Instance. Now I want to edit the image using im4java and display the Image on the canvas object. But I…
McFarlane
  • 1,777
  • 2
  • 22
  • 39
1
vote
1 answer

Why does im4java Java API require a native executable?

Is it possible to run an im4java application without installing ImageMagick-6.7.6-1-Q16-windows-dll.exe?
AnilHoney
  • 259
  • 8
  • 20
1
vote
1 answer

im4java Convert svg to png, keep transparent background

I'm using the im4java library to convert svg files to png files. I want the transparent backgrounds to remain transparent but they always become white. This is the operation I'm using: IMOperation hdpiOperation = new…
dzan
  • 425
  • 3
  • 14
1
vote
1 answer

im4Java, change frame colour?

How to change frame colour in ImageMagick 4 Java? I have something like this, but frame is all the time white... IMOperation miop = new IMOperation(); miop.background("#000000"); miop.addImage(path+fileName); miop.colorize(5,21,64); miop.frame(2);
goodm
  • 7,275
  • 6
  • 31
  • 55
0
votes
1 answer

How generate tiles 3x3 with im4java?

can you help me with im4java? I need to generate tiles 3x3 from 9 jpg-picture. How do I do it?
Darkin Rall
  • 377
  • 1
  • 4
  • 17
0
votes
1 answer

magick command gives unable to open image error

I am trying to run below command from my command prompt and it gives me following error: magick billadd1.jpg -type TrueColorAlpha billadd2.jpg -type TrueColorAlpha \( -clone 0,1 -compose difference -composite -morphology dilate disk:10 \) \( -clone…
0
votes
0 answers

Compare two images using imagemagic-im4java and show differences with original image

I am trying to compare two jpg images using im4java and showing difference between them. i have successfully done that but the output of difference image contrast is decreased. but i need to show the differences on output image with original…
0
votes
1 answer

How to perform "tile:" command with im4java?

I'm trying to use im4java to generate sample image with text on image with the pattern. My code: ConvertCmd convertCmd = new ConvertCmd(); IMOperation imOperation = new IMOperation(); imOperation.size(564, 564); …
kingkong
  • 1,537
  • 6
  • 27
  • 48