Problem:
How to convert .eps file to .jpg fileSolution:
It is simple, use ImageMagick and below java code. if you expert in PHP or .Net then you can easily convert it same as me.Example:
import="java.util.*"%>import="java.io.*"%>
try
{
Runtime runTime = Runtime.getRuntime();
Process process = runTime.exec ("C:/Program Files/ImageMagick-6.5.4-Q16/
//InputStream inputStream = process.getInputStream();
//InputStreamReader inputStreamReader = new InputStreamReader (inputStream);
//BufferedReader bufferedReader = new BufferedReader(
///String line = null;
//while ( (line = bufferedReader.readLine()) != null )
// System.out.println(line);
int exitVal = process.waitFor();
System.out.println ("Process exitValue: " + exitVal );
}
catch (Throwable t)
{
t.printStackTrace();
}
0 comments:
Post a Comment