Skip to content

Instantly share code, notes, and snippets.

@hbostan
hbostan / makegrayscale.sh
Created June 1, 2022 12:08
Make Grayscale pdf
#!/bin/bash
# Uses ghostscript to make a pdf grayscale.
# Helps to see if graphs make sense in grayscale.
COMMAND=gs
COMMAND_OPTS="-sDEVICE=pdfwrite -sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray -dCompatibilityLevel=1.4 -dAutoRotatePages=/None -dNOPAUSE -dBATCH"
OUTFILE=grayscale.pdf
COMPRESS=0
:100:, \U0001F4AF
:1234:, \U0001F522
:1st_place_medal:, \U0001F947
:+1:, \U0001F44D
:-1:, \U0001F44E
:__1:, \U0001F44E
:2nd_place_medal:, \U0001F948
:3rd_place_medal:, \U0001F949
:8ball:, \U0001F3B1
:abacus:, \U0001F9EE