Bug#444147: Generated images are *much* larger
$self ($some_minutes_ago): > Here it comes. Now I know why I was waiting a bit to send this mail, I was waiting for the (dirty, since I added some debug info, but you'll get it right easily) patch to sync between my boxen. Cheers, -- Cyril Brulebois diff --git a/src/dot.cpp b/src/dot.cpp index 286537a..b1bf7d5 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -341,7 +341,20 @@ DotRunner::DotRunner(const char *file) : m_file(file) void DotRunner::addJob(const char *format,const char *output) { - QCString args = QCString("-T")+format+" -o \""+output+"\""; + QCString args; + // avoid large images by using the gd renderer + if (strcmp(format, "png")==0) + { +fprintf (stderr, "format: %s, adding :gd\n", format); +args = QCString("-T")+format+":gd -o \""+output+"\""; + } + else + { +fprintf (stderr, "format: %s, not adding anything\n", format); +args = QCString("-T")+format+" -o \""+output+"\""; + } + fflush (stderr); + m_jobs.append(new QCString(args)); } pgprstlJS6Yv5.pgp Description: PGP signature
Bug#444147: Generated images are *much* larger
reassign 444147 doxygen tag 444147 patch thanks Faidon Liambotis <[EMAIL PROTECTED]> (26/09/2007): > asterisk-doc images were 13MB and with the newer graphviz this figure > gets to 112M (10 times more!). The package size gets from 28MB to > 122MB. I can't imagine what would happen on bigger software suites. > This will affect seriously all Debian mirrors! Again, that isn't *that* bad, since they are Architecture: all packages, that's why I'm not sure about the severity, I let that to doxygen's maintainer. > I'm not sure what the proper solution -if any- would be and if this > bug would need to be reassigned to doxygen, but I'm filing this here > since the graphviz maintainer would know the situation better. Following upstream's suggestions[1], using -Tpng:gs gives a rather satisfying result: Current (-Tpng, through cairo): $ find -name "*.png*" -print0 | xargs -0 du -hsc|tail -n 1 108Mtotal With the patch (-Tpng:gd, through gd): $ find -name "*.png*" -print0 | xargs -0 du -hsc|tail -n 1 13M total 1. https://mailman.research.att.com/pipermail/graphviz-interest/2007q3/004771.html > The severity may seem a bit inflated since there is no actual defect; > however, there is a need for a workaround or fix ASAP before this > seriously hits all mirrors. Here it comes. Cheers, -- Cyril Brulebois pgpOpXaKTV6xg.pgp Description: PGP signature
Processed: Re: Bug#444147: Generated images are *much* larger
Processing commands for [EMAIL PROTECTED]: > reassign 444147 doxygen Bug#444147: Generated images are *much* larger Bug reassigned from package `graphviz' to `doxygen'. > tag 444147 patch Bug#444147: Generated images are *much* larger There were no tags set. Tags added: patch > thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#444147: Generated images are *much* larger
Faidon Liambotis <[EMAIL PROTECTED]> (26/09/2007): > It appears that the newest graphviz in unstable creates some much > cleared images (antialiazed etc.) by the use of pango. Correct, pango is now used. > Unfortunately, this means that the generated images are *much* larger. > This may be not a very serious problem by itself but doxygen uses > graphviz and many packages in Debian generate their -doc packages > using doxygen. > asterisk-doc images were 13MB and with the newer graphviz this figure > gets to 112M (10 times more!). The package size gets from 28MB to > 122MB. I can't imagine what would happen on bigger software suites. > This will affect seriously all Debian mirrors! They are -doc package, that's not like they're duplicated 11 times on mirrors, though. > I'm not sure what the proper solution -if any- would be and if this > bug would need to be reassigned to doxygen, but I'm filing this here > since the graphviz maintainer would know the situation better. I thought people would be glad to have better looking images. I guess you might want to either reduce the size of the images, or pick another output format. I didn't check, but maybe svg or ps/pdf might be better than png in some cases. > The severity may seem a bit inflated since there is no actual defect; > however, there is a need for a workaround or fix ASAP before this > seriously hits all mirrors. I'll check that with upstream. I guess it's possible to disable the pango rendering/antialiased output at some point. Cheers, -- Cyril Brulebois pgpWUtVqWrFL9.pgp Description: PGP signature
Bug#444147: Generated images are *much* larger
Package: graphviz Version: 2.12-4 Severity: grave It appears that the newest graphviz in unstable creates some much cleared images (antialiazed etc.) by the use of pango. Unfortunately, this means that the generated images are *much* larger. This may be not a very serious problem by itself but doxygen uses graphviz and many packages in Debian generate their -doc packages using doxygen. asterisk-doc images were 13MB and with the newer graphviz this figure gets to 112M (10 times more!). The package size gets from 28MB to 122MB. I can't imagine what would happen on bigger software suites. This will affect seriously all Debian mirrors! I'm not sure what the proper solution -if any- would be and if this bug would need to be reassigned to doxygen, but I'm filing this here since the graphviz maintainer would know the situation better. The severity may seem a bit inflated since there is no actual defect; however, there is a need for a workaround or fix ASAP before this seriously hits all mirrors. Regards, Faidon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]