Ticket #1773 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Newer Versions Of Dia Need Different Options

Reported by: bram@digiport.com Assigned to: arkemp
Priority: normal Component: DiaViewPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

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

--export-to-format=png

with

--filter=png

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

Change History

10/19/07 21:02:00 changed by anonymous

  • status changed from new to closed.
  • resolution set to fixed.

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/Change #1773 (Newer Versions Of Dia Need Different Options)




Change Properties
Action