FS#8914 - imagemagick's convert dvi support
Attached to Project:
Arch Linux
Opened by Mathias Nedrebø (lessthanjake) - Wednesday, 12 December 2007, 22:02 GMT
Last edited by Eric Belanger (Snowman) - Wednesday, 23 April 2008, 04:43 GMT
Opened by Mathias Nedrebø (lessthanjake) - Wednesday, 12 December 2007, 22:02 GMT
Last edited by Eric Belanger (Snowman) - Wednesday, 23 April 2008, 04:43 GMT
|
Details
Description: convert misses support for dvi files (making it
impossible to use the pidgin-latex plugin)
Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: /usr/bin/convert -density 120x120 -trim /tmp/pidgin-latex--1666483318.dvi /tmp/pidgin-latex--1666483318.png but command line returned with error: convert: no decode delegate for this image format `/tmp/pidgin-latex--1666483318.dvi'. convert: missing an image filename `/tmp/pidgin-latex--1666483318.png'. |
This task depends upon
Closed by Eric Belanger (Snowman)
Wednesday, 23 April 2008, 04:43 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in imagemagick 6.4.0.2-1
Wednesday, 23 April 2008, 04:43 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in imagemagick 6.4.0.2-1
#Accepts arguments from pidgin-latex
args=("$@")
#A particularly important argument
ARG3=${args[3]}
#Converts DVI to a PS first
OUTPUT=${ARG3}'.ps'
/usr/bin/dvips ${ARG3} -o ${OUTPUT}
#Converts the PS to a PNG
/usr/bin/convert ${args[0]} ${args[1]} ${args[2]} ${OUTPUT} ${args[4]}
If you have the convert program and the dvips program, that script will work with pidgin-latex instead of convert. It must have something to do with all the ./configure flags that --disable stuff in the imagemagick PKGBUILD... just build it with support for EVERYTHING, that way no one will complain.
If you don't use testing, you can edit /usr/lib/ImageMagick-6.3.8/config/delegates.xml by adding:
<delegate decode="dvi" command=""dvips" -q -o "%o" "%i""/>
before </delegatemap>
That's basically what I do in the add_delegate.patch patch.