Skip to content

Instantly share code, notes, and snippets.

@GwynethLlewelyn
Last active July 21, 2024 16:26
Show Gist options
  • Select an option

  • Save GwynethLlewelyn/b8cb97bf1c1c480fbf964bab3b3edd40 to your computer and use it in GitHub Desktop.

Select an option

Save GwynethLlewelyn/b8cb97bf1c1c480fbf964bab3b3edd40 to your computer and use it in GitHub Desktop.

Revisions

  1. GwynethLlewelyn revised this gist Jul 21, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion convert.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    for file in *.png ; do
    magick "$file" -define webp:lossless=true -define webp:auto-filter=true-define webp:filter-strength=50 -define webp:image-hint=picture -define webp:method=6 -define webp:thread-level=1 "${file%.*}.webp" ;
    magick "$file" -define webp:lossless=true -define webp:auto-filter=true -define webp:filter-strength=50 -define webp:image-hint=picture -define webp:method=6 -define webp:thread-level=1 "${file%.*}.webp" ;
    done
  2. GwynethLlewelyn created this gist May 12, 2024.
    3 changes: 3 additions & 0 deletions convert.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    for file in *.png ; do
    magick "$file" -define webp:lossless=true -define webp:auto-filter=true-define webp:filter-strength=50 -define webp:image-hint=picture -define webp:method=6 -define webp:thread-level=1 "${file%.*}.webp" ;
    done