JPG:
$ brew install jpegoptim
$ find . -name "*.jpg" -exec jpegoptim -m80 -o -p --strip-all {} \;
- PNG:
$ brew install optipng
$ find . -name "*.png" -exec optipng -o7 {} \;
| // disable forced dark mode to prevent weird color changes | |
| // eslint-disable-next-line @typescript-eslint/no-var-requires | |
| const { createRunOncePlugin, withAndroidStyles, AndroidConfig } = require('expo/config-plugins') | |
| function setForceDarkModeToFalse(styles) { | |
| const newStyles = AndroidConfig.Styles.assignStylesValue(styles, { | |
| add: true, | |
| // ############# FOLLOW IF YOU'RE ON SDK 52 ############# | |
| // TODO: AndroidConfig.Styles.getAppThemeGroup() will be available in SDK 52 (or expo/config-plugins 9+), for now I just hardcoded AppTheme | |
| // parent: AndroidConfig.Styles.getAppThemeGroup(), |
JPG:
$ brew install jpegoptim
$ find . -name "*.jpg" -exec jpegoptim -m80 -o -p --strip-all {} \;
- PNG:
$ brew install optipng
$ find . -name "*.png" -exec optipng -o7 {} \;
| <?php | |
| /** | |
| * Musical Notes to Frequency Table | |
| * | |
| * This array contains all of the notes on a piano with their | |
| * corresponding frequencies. The array is organized into octaves | |
| * making it easy to loop through and output, for example, an html chart | |
| * of notes and frequencies. | |
| * |