__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/bash # # Copyright (c) 2015-2018 Samuel Thibault <[email protected]> # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # Make sure we have enough options if [ $# != 5 -a $# != 6 ]; then echo "ERROR: $0 jobid user name nb options [filename]" >&2 exit 1 fi NB=$4 OPTIONS=$5 FILE=$6 OUTPUT_FORMAT=brf case $0 in *imagetoubrl*) OUTPUT_FORMAT=ubrl ;; esac . /usr/share/cups/braille/cups-braille.sh checkTool convert imagemagick "embossing images" NEGATE=$(getOption Negate) case "$NEGATE" in True|true) NEGATE=-negate ;; False|false) NEGATE= ;; *) printf "ERROR: Option Negate must either True or False, got '%s'\n" "$NEGATE" >&2 exit 1 ;; esac ROTATE=$(getOption Rotate) case "$ROTATE" in 90\>|270\>) if [ "$GRAPHICWIDTH" -gt "$GRAPHICHEIGHT" ] then # Landscape paper, rotate to landscape instead of to portrait ROTATE=${ROTATE/\>/\<} fi ;; 0|90|270|180) ;; *) printf "ERROR: Option Rotate must be a valid rotation value, got '%s'\n" "$ROTATE" >&2 exit 1 ;; esac MIRROR=$(getOption mirror) case "$MIRROR" in True|true) MIRROR="-flop" ;; False|false) MIRROR="" ;; *) printf "ERROR: Option mirror must either True or False, got '%s'\n" "$MIRROR" >&2 exit 1 ;; esac PAGE="-page ${TOTALGRAPHICWIDTH}x${TOTALGRAPHICHEIGHT}+${GRAPHICHOFFSET}+${GRAPHICVOFFSET}" RESIZE=$(getOption fitplot) case "$RESIZE" in True|true) RESIZE="-size ${GRAPHICWIDTH}x${GRAPHICHEIGHT} -resize ${GRAPHICWIDTH}x${GRAPHICHEIGHT}" ;; False|false) RESIZE="-crop ${GRAPHICWIDTH}x${GRAPHICHEIGHT}+${GRAPHICHOFFSET}+${GRAPHICVOFFSET}" ;; *) printf "ERROR: Option fitplot must either True or False, got '%s'\n" "$RESIZE" >&2 exit 1 ;; esac EDGE=$(getOption Edge) EDGEFACTOR=$(getOptionNumber EdgeFactor) CANNY_RADIUS=$(getOptionNumber CannyRadius) CANNY_SIGMA=$(getOptionNumber CannySigma) CANNY_LOWER=$(getOptionNumber CannyLower) CANNY_UPPER=$(getOptionNumber CannyUpper) case $EDGE in None) WORK=$NEGATE;; Edge) WORK="$NEGATE -edge $EDGEFACTOR -negate" ;; Canny) WORK="-canny ${CANNY_RADIUS}x${CANNY_SIGMA}+$CANNY_LOWER%+$CANNY_UPPER% -negate" ;; *) printf "ERROR: Unknown Edge option value '%s'\n" "$EDGE" >&2 exit 1 ;; esac RENDER_CALL="convert $WORK -rotate $ROTATE $PAGE $RESIZE $MIRROR -flatten - $OUTPUT_FORMAT:-" # Now proceeed echo "INFO: Converting image" 1>&2 if [ -z "$FILE" ] then printf "DEBUG: Calling %s from stdin\n" "$RENDER_CALL" 1>&2 $RENDER_CALL | sed -e '/^\(Width\|X\|Y\): [0-9]*$/,/^$/d' | addmargins else printf "DEBUG: Calling %s on '%s'\n" "$RENDER_CALL" "$FILE" 1>&2 $RENDER_CALL < "$FILE" | sed -e '/^\(Width\|X\|Y\): [0-9]*$/,/^$/d' | addmargins fi echo "INFO: Ready" >&2
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| bannertopdf | File | 14.39 KB | 0755 |
|
| brftoembosser | File | 1 KB | 0755 |
|
| brftopagedbrf | File | 2.44 KB | 0755 |
|
| c2esp | File | 34.31 KB | 0755 |
|
| c2espC | File | 30.31 KB | 0755 |
|
| cgmtopdf | File | 1.54 KB | 0755 |
|
| cmxtopdf | File | 1.54 KB | 0755 |
|
| command2esp | File | 14.31 KB | 0755 |
|
| command2foo2lava-pjl | File | 22.39 KB | 0755 |
|
| commandtoescpx | File | 14.38 KB | 0755 |
|
| commandtopclx | File | 14.38 KB | 0755 |
|
| commandtops | File | 14.38 KB | 0755 |
|
| emftopdf | File | 1.54 KB | 0755 |
|
| foomatic-rip | File | 115.48 KB | 0755 |
|
| gstopdf | File | 14.38 KB | 0755 |
|
| gstopxl | File | 14.38 KB | 0755 |
|
| gstoraster | File | 14.38 KB | 0755 |
|
| gziptoany | File | 14.38 KB | 0755 |
|
| hpcdmfax | File | 30.66 KB | 0755 |
|
| hpcups | File | 397.9 KB | 0755 |
|
| hpcupsfax | File | 30.4 KB | 0755 |
|
| hpps | File | 46.8 KB | 0755 |
|
| imagetobrf | File | 2.71 KB | 0755 |
|
| imagetopdf | File | 14.39 KB | 0755 |
|
| imagetops | File | 14.38 KB | 0755 |
|
| imagetoraster | File | 14.39 KB | 0755 |
|
| imagetoubrl | File | 2.71 KB | 0755 |
|
| imageubrltoindexv3 | File | 5.47 KB | 0755 |
|
| imageubrltoindexv4 | File | 5.54 KB | 0755 |
|
| mupdftopwg | File | 14.38 KB | 0755 |
|
| musicxmltobrf | File | 893 B | 0755 |
|
| pclmtoraster | File | 14.39 KB | 0755 |
|
| pdftopdf | File | 14.39 KB | 0755 |
|
| pdftops | File | 14.39 KB | 0755 |
|
| pdftoraster | File | 14.39 KB | 0755 |
|
| pstops | File | 58.41 KB | 0755 |
|
| pstoqpdl | File | 22.4 KB | 0755 |
|
| pstotiff | File | 393 B | 0755 |
|
| pwgtopclm | File | 14.39 KB | 0755 |
|
| pwgtopdf | File | 14.39 KB | 0755 |
|
| pwgtoraster | File | 14.39 KB | 0755 |
|
| rastertobrlaser | File | 42.32 KB | 0755 |
|
| rastertoepson | File | 22.37 KB | 0755 |
|
| rastertoescpx | File | 38.38 KB | 0755 |
|
| rastertohp | File | 18.37 KB | 0755 |
|
| rastertolabel | File | 26.37 KB | 0755 |
|
| rastertopclx | File | 42.39 KB | 0755 |
|
| rastertops | File | 14.39 KB | 0755 |
|
| rastertoptch | File | 26.37 KB | 0755 |
|
| rastertopwg | File | 18.37 KB | 0755 |
|
| rastertoqpdl | File | 70.41 KB | 0755 |
|
| rastertosag-gdi | File | 15.59 KB | 0755 |
|
| svgtopdf | File | 1.54 KB | 0755 |
|
| textbrftoindexv3 | File | 3.85 KB | 0755 |
|
| textbrftoindexv4 | File | 3.85 KB | 0755 |
|
| texttobrf | File | 8.11 KB | 0755 |
|
| texttopdf | File | 14.39 KB | 0755 |
|
| texttops | File | 1.02 KB | 0755 |
|
| texttotext | File | 14.38 KB | 0755 |
|
| vectortobrf | File | 1.57 KB | 0755 |
|
| vectortopdf | File | 1.54 KB | 0755 |
|
| vectortoubrl | File | 1.57 KB | 0755 |
|
| wmftopdf | File | 1.54 KB | 0755 |
|
| xfigtopdf | File | 1.54 KB | 0755 |
|