Skip to content

Commit

Permalink
chore: update imagemagick alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed Jan 2, 2025
1 parent 9a3025d commit 3ce20e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bashrc_includes/custom_aliases.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ alias publicip="curl -s http://checkip.dyndns.com/ | sed 's/[^0-9\.]//g'"
alias localip="ipconfig getifaddr en0"
# List all make targets.
alias make_list="make -qp | sed -n -e 's/^\([^.#[:space:]][^:[:space:]]*\): .*/\1/p'"
alias jq_non_empty="jq 'del(..|select(. == null))' | jq 'del(..|select(. == 0))' | jq 'del(..|select(. == \"\"))'"

# Ref: https://serverfault.com/a/1123925/1053189
alias delete_unused_cloud_run="gcloud run revisions list --filter=\"status.conditions.type:Active AND status.conditions.status:'False'\" --format='value(metadata.name)' | xargs -r -L1 gcloud run revisions delete --quiet"

Expand Down Expand Up @@ -108,7 +110,7 @@ function resize_for_website {
extension="${filename##*.}"
filename_no_extension="${filename%.*}"
resized_file_name="${filename_no_extension}_resized.${extension}"
convert "${full_filename}" -resize 1500x1500 "$resized_file_name"
magick "${full_filename}" -resize 1500x1500 "$resized_file_name"
echo "Resized ${filename} to ${resized_file_name}"
du -shc "${filename}" "${resized_file_name}"
}
Expand Down

0 comments on commit 3ce20e3

Please sign in to comment.