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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture i686
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Eric Belanger (Snowman) - Friday, 18 January 2008, 06:20 GMT
imagemagick doesn't seem to support dvi files. Was it working before? Did you see a mention of dvi support somewhere?
Comment by Mathias Nedrebø (lessthanjake) - Friday, 18 January 2008, 11:44 GMT
Don't know if it ever worked on Arch, but it works on other systems (tested on SunOS and Ubuntu).
Comment by Connor Behan (connorbehan) - Tuesday, 25 March 2008, 00:34 GMT
#!/bin/bash
#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.
Comment by Eric Belanger (Snowman) - Sunday, 30 March 2008, 23:14 GMT
It's fixed in imagemagick 6.4.0.2-1 which is currently in [testing] repo as packages that depends on it will need to be rebuilt.

If you don't use testing, you can edit /usr/lib/ImageMagick-6.3.8/config/delegates.xml by adding:
<delegate decode="dvi" command="&quot;dvips&quot; -q -o &quot;%o&quot; &quot;%i&quot;"/>
before </delegatemap>

That's basically what I do in the add_delegate.patch patch.

Loading...