Check-in [4677f7c52b]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Scale the PBM before conversion to PNG, makes it easier to read on hidpi screens.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:4677f7c52bcdb65c894231244e4cef05912d7dfb
User & Date: stephanie.gawroriski 2019-06-16 05:23:43
Context
2019-06-16
07:02
Backup developer notes. check-in: 529c51a164 user: squirreljme tags: trunk
05:23
Scale the PBM before conversion to PNG, makes it easier to read on hidpi screens. check-in: 4677f7c52b user: stephanie.gawroriski tags: trunk
05:10
Allow just a method name to be specified in SXS so that other parts can be ignored. check-in: bc38a74e70 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to utils-dev/sxp.sh.

44
45
46
47
48
49
50




51
52
53
54
55
56
57
if "$__hosted" sxs "$__pkg" "$__cls" "$__mth" > "/tmp/$$"
then
	# Then convert it to a PBM
	if "$__hosted" txt-to-pbm "/tmp/$$" > "/tmp/$$.pbm"
	then
		if which pnmtopng > /dev/null
		then




			# Convert
			pnmtopng "/tmp/$$.pbm" > "$__out"
			
			# Cleanup
			rm -f "/tmp/$$.pbm"
		else
			mv -f "/tmp/$$.pbm" "$__out"







>
>
>
>







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
if "$__hosted" sxs "$__pkg" "$__cls" "$__mth" > "/tmp/$$"
then
	# Then convert it to a PBM
	if "$__hosted" txt-to-pbm "/tmp/$$" > "/tmp/$$.pbm"
	then
		if which pnmtopng > /dev/null
		then
			# Scale it
			pnmscale 2 "/tmp/$$.pbm" > "/tmp/$$.pbm.2"
			mv -f "/tmp/$$.pbm.2" "/tmp/$$.pbm"
			
			# Convert
			pnmtopng "/tmp/$$.pbm" > "$__out"
			
			# Cleanup
			rm -f "/tmp/$$.pbm"
		else
			mv -f "/tmp/$$.pbm" "$__out"