All Questions
Tagged with imagemagick-convert java
28 questions
2
votes
1
answer
1k
views
How to convert PNG to JPEG losslessly?
I've converted PNG to JPEG with both java and python PIL.
Python code :
from PIL import Image
img = Image.open('input.png')
img.save('output.jpg', 'JPEG', quality=100)
For converting the Java code ...
2
votes
1
answer
1k
views
How to convert animated webp to gif in android / java?
I want to convert the animated webp files to gif file and looking for solution since couple of days but did not get any easy straight solution yet.
I tried ffmpeg but it could not do the job and after ...
0
votes
0
answers
179
views
Imagemagick convert command for generating polygon is working in command line but not working in CentOS [duplicate]
Any help is very valuable for me.
I am trying to generate a polygon using imagemagick. I am passing imagemagick query to
Runtime.getRuntime().exec(query)
but its not working.
Below is the detail ...
1
vote
0
answers
660
views
How to generate thumbnails from inputStream in Java using GraphicsMagick
I am trying to generate Thumbnails for an input stream using GraphicsMagick in a java application.
I am using ProcessBuilder to invoke convert command (which needs to work on both windows and Linux)
...
0
votes
0
answers
25
views
BufferedReader not returning expected result when using ImageMagick
So I'm using ImageMagick to resize an image. It does that and saves to the file system as output.png. However, it doesn't print out the bytes of the image. Am I just having a brain fart or am I ...
1
vote
0
answers
542
views
Create Solid color rectangle with ImageMagick
I can not find any command to create solid color with rgb options in Java.
I can create it in commandLine like
convert -size 100x200 xc:rgb(0,255,255) whatever.jpg
from here
But how do that in ...
1
vote
0
answers
434
views
java.lang.ClassCastException: org.apache.batik.bridge.RhinoInterpreterFactory incompatible with org.apache.batik.script.InterpreterFactory
I have problem when work with Apache Batik
I using this code to Conver SVG to JPG file.
This my code :
public static void converSVGToJPG(String path,String fileName){
try {
...
0
votes
1
answer
2k
views
Convert DCI-P3 Colorspace to sRGB Using Java ImageIO or Imagemagick
I'm attempting to do image processing on a screenshot from a iPhone-X, but I'm running into trouble with the red channel not falling into an expected range. The problems are due to the color space of ...
0
votes
1
answer
217
views
cmyk to rgb conversion in alfresco plugin code and ImageMagick trying various way, unable to get it done. Kindly check my findings, please advice me
I am doing cmyk to rgb conversion but trying various way, unable to get it done. Kindly check my findings and please advice me,
1. i am getting the err and warning message when running through ...
1
vote
1
answer
862
views
Image Compression Using MagickQuick in AEM
I am using ImageQuick Tool to compress the DAM images. I am using below snippet for conversion.
try {
System.out.println(" Image is Processing :: " + assetDetails.getName() + "Original ...
0
votes
1
answer
1k
views
ImageMagick Invalid Parameter
I am using process command to run imagemagic as below :
try {
System.out.println(" Image is Processing :: " + assetDetails.getName() + "Original Size :: " + assetDetails.getSize());
...
0
votes
1
answer
581
views
GraphicsMagick convert fails for fig to jpg
I am trying to convert fig files to jpg using GraphisMagick/ImageMagick. When i am trying the basic command "gm convert input.fig output.jpg", it fails with the below error message.
GraphisMagick - gm ...
1
vote
3
answers
281
views
ImageMagick command line usage
I have an application which exports scanned pdf-documents.
Now the scanned documents are not of the highest quality. That is why I'm enhancing them with ImageMagick.
Until last version, it worked ...
0
votes
0
answers
25
views
Transperency Gets Lost while Converting Image through Image Magick
I am trying to upload an image for a product in Different resolution. The image has an transparent background.
While converting in larger resolution transparency remains exist while converting it in ...
0
votes
1
answer
1k
views
im4java convert using Pipes
I'm trying out im4java sample TestCase10 that deals with Pipes.
https://github.com/Widen/im4java/blob/master/src/org/im4java/test/TestCase10.java
public class im4Test {
public static void ...
0
votes
1
answer
76
views
Java + ImageMagick: how to figure out height of text based on width?
I'm using ImageMagick with Java in my project.
I have a command:
convert -background lightblue -fill blue -font Tahoma -pointsize 36 -size 320x caption:'This is a very long caption line.' caption....
0
votes
1
answer
49
views
Problems when running Python script from java
I am running a simple Python script from Java. The code for this is shown below
public class Foo {
public static void main(String[] args) {
String[] command = {"python", "...
1
vote
1
answer
152
views
Merging multiple JPGs from stdin into multi-file TIFF
I currently have the following command line with ImageMagick:
convert jpg:- -density 200x200 -monochrome -colors 2 -compress Group4 tif:-
I would like to be able to pipe more than one JPG image in ...
1
vote
1
answer
3k
views
Converting JPG image to PDF without resizing image with ghostscript or itext
I'm trying to merge images in JPG format with standard PDF documents, while keeping images in the same size. Earlier I was using ImageMagick's convert, but it results in huge quality drop since it ...
0
votes
1
answer
372
views
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\\...
0
votes
1
answer
671
views
ImageMagick's Convert for EPS to JPEG not being called properly
M primary goal is to take in a series of .eps files and convert them to .jpg using ImageMagick and GhostScript. I have both ImageMagick and GhostScript installed in a Windows environment. I am ...
0
votes
1
answer
2k
views
ImageMagick media conversion exceptions
We are getting a few exceptions when we try to convert an image on a Linux box. When we try the same media conversion on a Windows 8 machine it works perfectly, without any exceptions.
The same ...
2
votes
1
answer
300
views
Draw a circle using im4java
I need to draw a circle and save it as an image in a directory. I want to draw the image using im4java. I have tried to create, but there is no IMoperation available in im4java. Any help???
0
votes
1
answer
926
views
Running imagemagick convert with ProcessBuilder
I want to run the following command on Windows command prompt:
convert -density 50 -pointsize 70 -font Arial label:"Text with spaces" output.gif
This command uses imagemagick and makes a gif file ...
2
votes
1
answer
3k
views
Calling ImageMagick convert from Java with runtime exec
I want to convert some images from tif to tif to change the photometric interpretation.
I found the ImageMagick Tool and installed it, in command line the following command works and does what i want:...
0
votes
1
answer
823
views
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 ...
1
vote
0
answers
205
views
Choosing 15 colors from a 159 color palette to recolor (quantize) an image
My question is, what is the best way to use imagemagick (or a java library) to recolor an image using only 15 colors chosen from a 159 color static palette. I would use those 15 colors to create ...
1
vote
1
answer
3k
views
imagemagick convert : tiff warnings / multiple output files created
I am working on a java application that uses the ImageMagick convert utility to convert tiff to jpg.
Our workflow is to first do the tiff->jpg; create buffered img obj in order to get dimensions, ...