gnucash-docs maint: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Sun Nov 6 19:26:17 EST 2016


Updated	 via  https://github.com/Gnucash/gnucash-docs/commit/dde2cb79 (commit)
	 via  https://github.com/Gnucash/gnucash-docs/commit/e672e971 (commit)
	from  https://github.com/Gnucash/gnucash-docs/commit/879cc521 (commit)



commit dde2cb796864093cb4987a30c8786477b7eeff05
Merge: 879cc52 e672e97
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Nov 6 14:35:26 2016 -0800

    Merge branch 'adjust-dpi' of https://github.com/goodvibes2/gnucash-docs into maint


commit e672e971520010364a097025c08f5ee8adab1447
Author: goodvibes2 <chris.good at ozemail.com.au>
Date:   Sat Nov 5 17:40:15 2016 +1100

    adjust-dpi.sh: round to 1 dec instead of 2 for Help images

diff --git a/help/C/figures/Help_AccountReg_Screen.png b/help/C/figures/Help_AccountReg_Screen.png
index 30845f0..281ec64 100644
Binary files a/help/C/figures/Help_AccountReg_Screen.png and b/help/C/figures/Help_AccountReg_Screen.png differ
diff --git a/help/C/figures/Help_Pref_AccntPeriod.png b/help/C/figures/Help_Pref_AccntPeriod.png
index 6e54f54..6dbdb66 100644
Binary files a/help/C/figures/Help_Pref_AccntPeriod.png and b/help/C/figures/Help_Pref_AccntPeriod.png differ
diff --git a/help/C/figures/Help_Pref_Accnts.png b/help/C/figures/Help_Pref_Accnts.png
index 9c6c4a0..47fec77 100644
Binary files a/help/C/figures/Help_Pref_Accnts.png and b/help/C/figures/Help_Pref_Accnts.png differ
diff --git a/help/C/figures/Help_Pref_Business.png b/help/C/figures/Help_Pref_Business.png
index 9cf49c7..4325de2 100644
Binary files a/help/C/figures/Help_Pref_Business.png and b/help/C/figures/Help_Pref_Business.png differ
diff --git a/help/C/figures/Help_Pref_DateTime.png b/help/C/figures/Help_Pref_DateTime.png
index 3a7c73f..226ab85 100644
Binary files a/help/C/figures/Help_Pref_DateTime.png and b/help/C/figures/Help_Pref_DateTime.png differ
diff --git a/help/C/figures/Help_Pref_General.png b/help/C/figures/Help_Pref_General.png
index a1788d0..20face2 100755
Binary files a/help/C/figures/Help_Pref_General.png and b/help/C/figures/Help_Pref_General.png differ
diff --git a/help/C/figures/Help_Pref_OnlineBanking.png b/help/C/figures/Help_Pref_OnlineBanking.png
index 52273f2..7591870 100755
Binary files a/help/C/figures/Help_Pref_OnlineBanking.png and b/help/C/figures/Help_Pref_OnlineBanking.png differ
diff --git a/help/C/figures/Help_Pref_Printing.png b/help/C/figures/Help_Pref_Printing.png
index 73cdf89..6b1853c 100755
Binary files a/help/C/figures/Help_Pref_Printing.png and b/help/C/figures/Help_Pref_Printing.png differ
diff --git a/help/C/figures/Help_Pref_Register.png b/help/C/figures/Help_Pref_Register.png
index 1061224..2c42788 100755
Binary files a/help/C/figures/Help_Pref_Register.png and b/help/C/figures/Help_Pref_Register.png differ
diff --git a/help/C/figures/Help_Pref_RegisterDefaults.png b/help/C/figures/Help_Pref_RegisterDefaults.png
index ef4a706..ff21732 100755
Binary files a/help/C/figures/Help_Pref_RegisterDefaults.png and b/help/C/figures/Help_Pref_RegisterDefaults.png differ
diff --git a/help/C/figures/Help_Pref_Reports.png b/help/C/figures/Help_Pref_Reports.png
index 59a04cd..4c95830 100755
Binary files a/help/C/figures/Help_Pref_Reports.png and b/help/C/figures/Help_Pref_Reports.png differ
diff --git a/help/C/figures/Help_Pref_Sched.png b/help/C/figures/Help_Pref_Sched.png
index a0babda..87f338b 100755
Binary files a/help/C/figures/Help_Pref_Sched.png and b/help/C/figures/Help_Pref_Sched.png differ
diff --git a/help/C/figures/Help_Pref_Windows.png b/help/C/figures/Help_Pref_Windows.png
index 694d156..e7f8bca 100755
Binary files a/help/C/figures/Help_Pref_Windows.png and b/help/C/figures/Help_Pref_Windows.png differ
diff --git a/help/C/figures/Help_TxRptOpt_Screen.png b/help/C/figures/Help_TxRptOpt_Screen.png
index 471a18a..3f37b92 100644
Binary files a/help/C/figures/Help_TxRptOpt_Screen.png and b/help/C/figures/Help_TxRptOpt_Screen.png differ
diff --git a/util/adjust-dpi.sh b/util/adjust-dpi.sh
index 0717ad7..6bd0559 100755
--- a/util/adjust-dpi.sh
+++ b/util/adjust-dpi.sh
@@ -22,13 +22,13 @@ do
     fi
   fi
   # convert dpi from pixelsperinch to pixelspercentimeter
-  #  Note: bc truncates to scale decimals so use awk to round to 2 decimals
-  dpi_cm=$(echo "scale=8; $dpi/2.54" | bc | awk '{ printf("%.2f",$1); }')
+  #  Note: bc truncates to scale decimals so use awk to round to 1 decimals
+  dpi_cm=$(echo "scale=8; $dpi/2.54" | bc | awk '{ printf("%.1f",$1); }')
   # get the existing dpi from figure as XX PixelsPerCentimeter
   existing_dpi=$(identify -format "%x" "$figure")
   # some vers of identify suffix the returned dpi with " PixelsPerCentimeter"
   #  and/or do not round the return value of identify -format "%x"
-  existing_dpi=$( echo "$existing_dpi" | awk '{ printf("%.2f",$1); }')
+  existing_dpi=$( echo "$existing_dpi" | awk '{ printf("%.1f",$1); }')
   # set the future dpi figure to XX.XX (PixelsPerCentimeter)
   future_dpi="$dpi_cm"
   # apply new dpi only if it's changed from the existing



Summary of changes:
 help/C/figures/Help_AccountReg_Screen.png     | Bin 83939 -> 83924 bytes
 help/C/figures/Help_Pref_AccntPeriod.png      | Bin 63559 -> 63565 bytes
 help/C/figures/Help_Pref_Accnts.png           | Bin 75019 -> 75025 bytes
 help/C/figures/Help_Pref_Business.png         | Bin 64445 -> 64451 bytes
 help/C/figures/Help_Pref_DateTime.png         | Bin 60743 -> 60749 bytes
 help/C/figures/Help_Pref_General.png          | Bin 91481 -> 91487 bytes
 help/C/figures/Help_Pref_OnlineBanking.png    | Bin 87244 -> 87250 bytes
 help/C/figures/Help_Pref_Printing.png         | Bin 45735 -> 45741 bytes
 help/C/figures/Help_Pref_Register.png         | Bin 71375 -> 71381 bytes
 help/C/figures/Help_Pref_RegisterDefaults.png | Bin 58919 -> 58925 bytes
 help/C/figures/Help_Pref_Reports.png          | Bin 50628 -> 50634 bytes
 help/C/figures/Help_Pref_Sched.png            | Bin 57263 -> 57269 bytes
 help/C/figures/Help_Pref_Windows.png          | Bin 60515 -> 60521 bytes
 help/C/figures/Help_TxRptOpt_Screen.png       | Bin 53734 -> 53660 bytes
 util/adjust-dpi.sh                            |   6 +++---
 15 files changed, 3 insertions(+), 3 deletions(-)



More information about the gnucash-changes mailing list