Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002165graphvizOutput Generationpublic2011-11-24 10:422013-10-22 11:08
Reporterhydrant 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformlinuxOSgentooOS Version
Summary0002165: Images damaged in PDF output
DescriptionNode images are corrupted in PDF output
Steps To ReproduceI uploaded input files and generated output

dot -Tpdf test.dot -o test.pdf
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENTnew jpg image loader in gdk plugin - part of graphvix-plugin-x rpm
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION
Attached Fileszip file icon patches.zip [^] (1,361,629 bytes) 2011-11-24 10:42
pdf file icon test2.pdf [^] (1,220,599 bytes) 2011-11-24 12:31
? file icon test2.gv [^] (20,053 bytes) 2011-11-24 12:33

- Relationships

-  Notes
User avatar (0000119)
hydrant (reporter)
2011-11-24 10:45

Now, I am using svg output, which works. But PDF would be more convenient.

BTW: I do not like the fact, that edges are going cross the images. I do not know how to draw them in background. (But this is not a bug, I posted the question to forum)
User avatar (0000120)
ellson (administrator)
2011-11-24 12:28

The color corruption problem is caused by using gd to load the jpg with a limited 256 element indexed colortable. It works ok for single images, but completely runs out of colors for large sets of different images.

There doesn't seem to be a better jpg loadimage plugin available at the moment. I'll see if I can provide a better one at some point...

Meanwhile, using png seems to work better. I tried by converting your images with "netpbm" tools:

    cd patches
    for i in *jpg; do jpegtopnm <$i | pnmtopng > ${i%%jpg}png;done

and then edit the .dot file to refer to the .png instead of the .jpg

Edges can be drawn first (underneath) by using: graph [outputorder=edgesfirst]
User avatar (0000581)
ellson (administrator)
2013-10-22 11:07

There is a new jpg image-loader provided by the gdk plugin. If this is available it will be used in preference to the one provided by the gd plugin.

- Issue History
Date Modified Username Field Change
2011-11-24 10:42 hydrant New Issue
2011-11-24 10:42 hydrant File Added: patches.zip
2011-11-24 10:45 hydrant Note Added: 0000119
2011-11-24 12:28 ellson Note Added: 0000120
2011-11-24 12:31 ellson File Added: test2.dot
2011-11-24 12:31 ellson File Added: test2.pdf
2011-11-24 12:32 ellson File Deleted: test2.dot
2011-11-24 12:33 ellson File Added: test2.gv
2011-11-24 12:55 erg Assigned To => ellson
2011-11-24 12:55 erg Status new => assigned
2013-10-22 11:07 ellson Note Added: 0000581
2013-10-22 11:08 ellson FIX-COMMENT => new jpg image loader in gdk plugin - part of graphvix-plugin-x rpm
2013-10-22 11:08 ellson Status assigned => resolved
2013-10-22 11:08 ellson Resolution open => fixed


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker