Skip to contentSkip to conversation

asoc-tools: Render png image instead of jpeg in vizdapm.sh

PATCH Applied Jarkko Nikula 2 participants 2 messages Oct 30, 2013 – Oct 31, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 asoc-tools: Render png image instead of jpeg in vizdapm.sh

Lossless png image suits better to technical drawings than jpeg which may even have artifacts around sharp objects.

---
For git://opensource.wolfsonmicro.com/asoc-tools.git

---
 bin/vizdapm.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
bin/vizdapm.sh +3 -3
index 11d1361..8d61dd2 100755
@@ -16,7 +16,7 @@
 usage()
 {
 cat << EOF
-usage: $0 <dapm-debugfs-directory> <graph-dot-file> <graph-jpg-file>
+usage: $0 <dapm-debugfs-directory> <graph-dot-file> <graph-png-file>
 EOF
 exit 1
 }
@@ -29,7 +29,7 @@ active=
 curpath=`pwd`
 dapm_debugfs="$1"
 graph_file=${curpath}"/$2"
-graph_file_jpg=${curpath}"/$3"
+graph_file_png=${curpath}"/$3"
 
 trap "{ [ -f "$graph_file" ] && rm -f "$graph_file"; exit; }" SIGINT SIGTERM
 
@@ -62,4 +62,4 @@ done
 popd >/dev/null
 
 echo "}" >> "$graph_file"
-dot -Kfdp -Tjpg "$graph_file" -o "$graph_file_jpg"
+dot -Kfdp -Tpng "$graph_file" -o "$graph_file_png"
Signature · 1 line
1.8.4.rc3