Opened 9 years ago

Closed 9 years ago

#1773 closed defect (fixed)

Newer Versions Of Dia Need Different Options

Reported by: bram@… Owned by: arkemp
Priority: normal Component: DiaViewPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


I use Ubuntu Server Feisty, Trac 0.10.3 and Dia version 0.96.1. Once I installed DiaViewPlugin and modified the TODO for the dia path my pages with dia attachments and Macro usage would only show the HTML image tag "alt" attribute text:

JPG render of a DIA file.

In my trac.log file I would get the following:

2007-07-11 19:15:06,947 Trac[DiaView] INFO: New attachment: TracTest.png
2007-07-11 19:15:12,228 Trac[DiaView] INFO: Getting file modification times.
2007-07-11 19:15:12,229 Trac[DiaView] INFO: Comparing dia and png file modification times : 1184197913.0, 0
2007-07-11 19:15:12,229 Trac[DiaView] INFO: Running Dia : /usr/bin/dia -l --export-to-format=png --export=/home/trac/qcard/attachments/wiki/QcardAgi/TracTest.png /home/trac/qcard/attachments/wiki/QcardAgi/TracTest.dia
2007-07-11 19:15:12,249 Trac[DiaView] INFO: Exiting Dia
2007-07-11 19:15:12,760 Trac[main] WARNING: 500 Internal Server Error (500 Internal Server Error (Attachment TracTest.png not found))

I decided to try the dia command from the command line and it failed as follows:

bram@pyfool:/home/trac/qcard/plugins$ /usr/bin/dia -l --export-to-format=png --export=/home/trac/qcard/attachments/wiki/QcardAgi/TracTest.png /home/trac/qcard/attachments/wiki/QcardAgi/TracTest.dia

Unknown option --export-to-format=png

This prompted me to /usr/bin/dia --help which pointed out an option change to replace




After making this change things worked perfectly...well as far as I have tested. Maybe some type of dia version testing should be done to determine exactly which options should be used for the export.

Thanks for the great plugin!

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the feedback. I'll update the plugin, shift to the new options (I just had the same problems) and add a comment to that line.

Add Comment

Modify Ticket

as closed The owner will remain arkemp.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.