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
0
votes
1 answer

Use ImageMagick as component without installing

I am developing a java application where i require image conversion and I want to use imageMagick for that. I made a java program using jmagick.jar in classpath and then installed imageMagick. Then the program was running as expected. But i want to…
0
votes
1 answer

crop options in imagemagick?

I'm using im4java api to crop images. I never used command-line for imagemagic. there are function, crop(int width,int height,int x, int y, String special) crop(int width,int height,int x, int y, Character special) I can understand, what are…
Muneeb Nasir
  • 2,414
  • 4
  • 31
  • 54
0
votes
1 answer

resize image to specific height and width value using im4java?

I need to re-size image to any specific height and width value. But I'm not getting resized result. here is my code, please tell me either i'm doing something wrong or missing something. IMOperation operationSmall = new IMOperation(); …
Muneeb Nasir
  • 2,414
  • 4
  • 31
  • 54
0
votes
1 answer

Run GraphicsMagick compare command using im4java + gm4java

I am trying to do a GraphicsMagick compare using im4java and gm4java. The GraphicsMagick command I'm using is like this: gm compare -maximum-error 0 -metric MAE -highlight-style xor -hilight-color red -file C:/output/diffFile.pdf C:/input/file1.pdf…
Chuck L
  • 1,026
  • 10
  • 23
0
votes
1 answer

im4java can't find GhostScript Library when converting images on Web App

I've recently began to use im4java, a java wrapper for ImageMagick, to convert .eps files to .jpg. My code currently is: public void convertESPtoJPG() { //Env.programPAth: C:\\Program Files\\ImageMagick-6.8.9-Q16 //Env.copyToDest:…
antihero989
  • 486
  • 1
  • 10
  • 32
0
votes
2 answers

How to binarize image using im4java?

I want to turn my color image into B&W. Basically, I want to call this ImageMagick command: convert input.png -threshold 80% output.png but using the im4java library. I'm aware of the IMOperation.threshold() method, but I don't know how to write…
justsomeusername
  • 495
  • 4
  • 11
0
votes
1 answer

im4java and imagemagick - why gravity parameter is not working?

I'm trying to resize an image using Image Magick through IM4Java library. It works well, except the image isn't centered. I've run these same commands through external command line and they work well. Can anyone tell me why this isn't…
Richard G
  • 5,243
  • 11
  • 53
  • 95
0
votes
1 answer

im4java compare command giving Command exception

Following code gives org.im4java.core.CommandException: org.im4java.core.CommandException: return code: 1 I am trying to compare two colors. what is wrong in my code or what is the correct solution to compare colors. ImageCommand compare=new…
0
votes
2 answers

How do you resize an image using im4java?

I'm trying to resize an image using im4java. I haven't found any working examples and their JavaDocs are incomplete. OOTB Java solutions are insufficient and lead to poor quality in the resulting images, despite rendering hint adjustments.
mtical
  • 299
  • 4
  • 15
0
votes
1 answer

Process Pooling in im4java

Guys am using imagemagick library for image processing in my project(java). When multiple requests hit the server, it responds very slowly. Now, multiple convert commands ( executes as an individual process ) are executed simultaneously and to avoid…
gursahib.singh.sahni
  • 1,559
  • 3
  • 26
  • 51
0
votes
1 answer

Create transparent canvas using im4java

How can I create an empty, transparent canvas using im4java. Using the Commandline, I can do this using: convert.exe -size "64x32" canvas:transparent out.png But using im4java, I am stuck at the canvas command: ConvertCmd cmd = new…
McFarlane
  • 1,777
  • 2
  • 22
  • 39
0
votes
1 answer

im4Java - Dynamic Operation for Resize

I am using the im4Java lib to resize my images. I see you can set up a template operation which has place holder for the input and output files. I know you can initially set the resize dimensions for the operation, but can one set up the operation…
Jeffrey
  • 1,068
  • 2
  • 15
  • 25
-1
votes
1 answer

Applitools: How to implement it?

I would like to implement visual UI comparison but I don't have the idea on how to implement it. Anyone please give some idea on how to implement visual UI comparison. I know that need to compare the actual and expected screenshot but I don't know…
nicholas
  • 2,581
  • 14
  • 66
  • 104
1 2 3 4
5