LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: ilpleut

gimp 没有打印命令吗?

[复制链接]
 楼主| 发表于 2007-7-3 23:06:26 | 显示全部楼层
有哪位高人用 gimp 打印过吗?
回复 支持 反对

使用道具 举报

发表于 2007-7-4 22:49:33 | 显示全部楼层
我用的debian/sid
我的gimp可以打印, 装了gimp-print就可以了.
下面是我的截图,
Untitled -- Print v5.0.0就是打印的对话框,
gimp菜单显示Print在Quit下面, 汗!!
term里显示的是名字跟gimp有关的软件.
一个小建议,
如果该装的都装了还是不行也许可以试一下把 ~/.gimp-2.2删掉 :ask :ask

另外,gimp打印跟什么打印机没关系.
我用的打印机是Canon LBP1120就是那种linux支持很差的capt打印机.
我都能用, 相信你也没问题. 呵呵

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-4 23:51:31 | 显示全部楼层
谢楼上,不过还是没办法。
该装的都装了,有 gimp-print, 也把 ~/.gimp-2.2 删了,还是没见着 print.
回复 支持 反对

使用道具 举报

发表于 2007-7-5 18:21:05 | 显示全部楼层
我这里也有打印命令呀,你怎么会没有???你自己编译的还是???
我的打印机是HP的all in one Laserjet 3015
gimp-2.2.15-i486-1
回复 支持 反对

使用道具 举报

发表于 2007-7-5 22:22:20 | 显示全部楼层
首先确认/usr/lib/gimp/2.0/plug-ins/print这个文件的存在, 和它的属性

  1. ~/.gimp-2.2$  ls /usr/lib/gimp/2.0/plug-ins/print -l
  2. -rwxr-xr-x 1 root root 14744 Nov  3  2006 /usr/lib/gimp/2.0/plug-ins/print
复制代码

该文件属于gimp-print:

  1. ~/.gimp-2.2$  dpkg -S usr/lib/gimp/2.0/plug-ins/print
  2. diversion by gimp-print from: /usr/lib/gimp/2.0/plug-ins/print
  3. diversion by gimp-print to: /usr/lib/gimp/2.0/print.orig
  4. gimp-print: /usr/lib/gimp/2.0/plug-ins/print
复制代码

在~/.gimp-2.2/pluginrc里有对这些插件的定义, 该文件删除后会自动生成.
确认里有这样的行

  1. (plug-in-def "/usr/lib/gimp/2.0/plug-ins/print" 1162515403
  2.     (proc-def "file_print_gimp" 1
  3.          "This plug-in prints images from The GIMP using Gutenprint directly."
  4.          "Prints images to many printers."
  5.          "Michael Sweet <mike@easysw.com> and Robert Krawitz <rlk@alum.mit.edu>"
  6.          "Copyright 1997-2006 by Michael Sweet and Robert Krawitz"
  7.          "5.0.0 - 22 Jul 2006"
  8.          ""
  9.          1
  10.         (menu-path "<Image>/File/Print...")
  11.         (icon stock-id -1 "")
  12.          ""
  13.          ""
  14.          ""
  15.          "RGB*,GRAY*,INDEXED*"
  16.          28 0
  17.         (proc-arg 0 "run_mode" "Interactive, non-interactive")
  18.         (proc-arg 13 "image" "Input image")
  19.         (proc-arg 16 "drawable" "Input drawable")
  20.         (proc-arg 4 "output_to" "Print command or filename (| to pipe to command)")
  21.         (proc-arg 4 "driver" "Printer driver short name")
  22.         (proc-arg 4 "ppd_file" "PPD file")
  23.         (proc-arg 0 "output_type" "Output type (0 = gray, 1 = color)")
  24.         (proc-arg 4 "resolution" "Resolution ("300", "720", etc.)")
  25.         (proc-arg 4 "media_size" "Media size ("Letter", "A4", etc.)")
  26.         (proc-arg 4 "media_type" "Media type ("Plain", "Glossy", etc.)")
  27.         (proc-arg 4 "media_source" "Media source ("Tray1", "Manual", etc.)")
  28.         (proc-arg 3 "brightness" "Brightness (0-400%)")
  29.         (proc-arg 3 "scaling" "Output scaling (0-100%, -PPI)")
  30.         (proc-arg 0 "orientation" "Output orientation (-1 = auto, 0 = portrait, 1 = landscape)")
  31.         (proc-arg 0 "left" "Left offset (points, -1 = centered)")
  32.         (proc-arg 0 "top" "Top offset (points, -1 = centered)")
  33.         (proc-arg 3 "gamma" "Output gamma (0.1 - 3.0)")
  34.         (proc-arg 3 "contrast" "Contrast")
  35.         (proc-arg 3 "cyan" "Cyan level")
  36.         (proc-arg 3 "magenta" "Magenta level")
  37.         (proc-arg 3 "yellow" "Yellow level")
  38.         (proc-arg 0 "linear" "Linear output (0 = normal, 1 = linear)")
  39.         (proc-arg 0 "image_type" "Image type (0 = line art, 1 = solid tones, 2 = continuous tone, 3 = monochrome)")
  40.         (proc-arg 3 "saturation" "Saturation (0-1000%)")
  41.         (proc-arg 3 "density" "Density (0-200%)")
  42.         (proc-arg 4 "ink_type" "Type of ink or cartridge")
  43.         (proc-arg 4 "dither_algorithm" "Dither algorithm")
  44.         (proc-arg 0 "unit" "Unit 0=Inches 1=Metric"))
  45.     (locale-def "gutenprint" "/usr/share/locale"))
复制代码

这应该是生成打印菜单的关键.
如果里面没有类似行, 可以把它删除, 让它重新产生.
如果实在不行可以试着将它拷到~/.gimp-2.2/pluginrc里面
在(protocol-version 17)下面, 空一行. (不过估计没用)


在终端运行gimp --verbose看出来的信息, 也许有有用的信息在里面. 我这边没看到什么有用的信息.

如果实在不行, 请用

  1. apt-get remove --purge `dpkg -l|awk '/gimp/{print $2}'`
  2. apt-get install gimp gimp-print
复制代码

将它卸了重装试试.

还不行的话我就也没招了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-6 07:54:43 | 显示全部楼层
感谢 lastart 的热心回复。我的问题已解决,经过如下:

前面版友介绍说装了 gimp-print 就可以有打印菜单,但我装了,仍没有 print. 又说删掉 ~/.gimp-2.2, 让它重新生成,可以有 print, 我也删了,仍没有。
经过研究,发现 dreamlinux 在系统中预装的是 gimpshop, 而不是正宗的 gimp. 便把 gimpshop 给 purge 掉了,重新装上 gimp. 在菜单的 quit 下面就有了个 print 。(此前已经装了 gimp-print)

再说下,不知道 gimpshop 是啥玩意,用起来跟 gimp 一样的界面。
回复 支持 反对

使用道具 举报

发表于 2007-7-6 09:52:58 | 显示全部楼层
晕,楼主自己装了什么都没搞清楚。gimpshop是采用photoshop的菜单布局的gimp。
回复 支持 反对

使用道具 举报

发表于 2007-7-6 22:16:15 | 显示全部楼层
Post by ilpleut
感谢 lastart 的热心回复。我的问题已解决,经过如下:

前面版友介绍说装了 gimp-print 就可以有打印菜单,但我装了,仍没有 print. 又说删掉 ~/.gimp-2.2, 让它重新生成,可以有 print, 我也删了,仍没有。
经过研究,发现 dreamlinux 在系统中预装的是 gimpshop, 而不是正宗的 gimp. 便把 gimpshop 给 purge 掉了,重新装上 gimp. 在菜单的 quit 下面就有了个 print 。(此前已经装了 gimp-print)

再说下,不知道 gimpshop 是啥玩意,用起来跟 gimp 一样的界面。

太佩服你了, 这么多天了, 你居然都没看一下机器里装的是什么....
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表