`
Sam1860
  • 浏览: 98972 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

ImageMagick, JMagick 在Linux下的安装

    博客分类:
  • Java
阅读更多

    ImageMagick是广泛使用的开源图形处理程序。JMagick是通过JNI使用ImageMagick功能的Java接口。

根据
libjpeg
libjpeg-devel
libpng
libpng-devel
libungif
libungif-devel

make test
<!---->make[1]: Entering directory `/home/jarod/JMagick-6.2.6-0/src/test'
LD_LIBRARY_PATH=/usr/local/lib:../../lib: DYLD_LIBRARY_PATH=/usr/local/lib:../../lib: /home/jdk/bin/java -classpath /home/jarod/JMagick-6.2.6-0/classes test.Test
Scaled to 60x30
Depth 8
Quality is 75
Colorspace is 1
Resolution units is 1
X resolution is 72.0
Y resolution is 72.0
Size blob is 4538
Colors 0
Total colors 0
Depth is 8
Old colour PixelPacket(65535,65535,65535,0)
New colour PixelPacket(65535,0,0,0)
Number of generic profiles 0
Profile name is null
No profile info
Profile name is null
No profile info
Profile name is Test
Profile length is 20
Length 21382
Blob width is 198
Blob heght is 134
java.awt.Dimension[width=198,height=134]
Width is 198
Height is 134
Depth is 8
Storage class is 1
Comment is "CREATOR: XV Version 3.10a  Rev: 12/29/94 (PNG patch 1.2)  Quality = 100, Smoothing = 0
"
QuantizeImage true
Colors 65536
Total colors 0
String: Rectangle 10 10 190 90
String: Hello
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.
<clinit>(X11GraphicsEnvironment.java:134)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
        at java.awt.Window.init(Window.java:231)
        at java.awt.Window.
<init>(Window.java:275)
        at java.awt.Frame.
<init>(Frame.java:401)
        at java.awt.Frame.
<init>(Frame.java:366)
        at test.MagickWindow.
<init>(MagickWindow.java:52)
        at test.Test.main(Test.java:276)
make[1]: *** [test] Error 1
make[1]: Leaving directory `/home/jarod/JMagick-6.2.6-0/src/test'
make: *** [test] Error 2

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics