Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
lttr committed Dec 17, 2024
1 parent cb4f359 commit dcb0a61
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/graphics/mozjpeg-photos-extra.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Reduces size of photos (converts them in place)

RESOLUTION=4000
QUALITY=95

sharp -i "$@" -o ./ resize $RESOLUTION $RESOLUTION --quality $QUALITY --fit inside --chromaSubsampling '4:4:4' --withMetadata
5 changes: 5 additions & 0 deletions zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export PATH="$PATH:$FORGIT_INSTALL_DIR/bin"
# ripgrep
export RIPGREP_CONFIG_PATH=$HOME/dotfiles/ripgrep_config

# dotnet
export DOTNET_ROOT="$HOME/.dotnet"
export PATH="$PATH:$DOTNET_ROOT"
export PATH="$PATH:$DOTNET_ROOT/tools" # for photo-cli

# user environment
export PAGER=/usr/bin/less
export EDITOR=nvim
Expand Down

0 comments on commit dcb0a61

Please sign in to comment.