User Tools

Site Tools


howto:convert-images

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
howto:convert-images [2024/10/20 21:38] – [3D VR SBS to 2D] Wulf Rajekhowto:convert-images [2025/01/05 18:28] (current) Wulf Rajek
Line 26: Line 26:
 find . -name '*.png' -type f -exec bash -c 'cwebp -z 9 "$0" -o "${0%.png}.webp"' {} \; find . -name '*.png' -type f -exec bash -c 'cwebp -z 9 "$0" -o "${0%.png}.webp"' {} \;
 #find . -type f -name '*.png' -delete #find . -type f -name '*.png' -delete
 +</code>
 +
 +===== lossy conversion of png to jpg =====
 +Converts all png files in the directory recursively to jpg
 +<code>
 +find . -iname '*.png' | while read i; do mogrify -format jpg "$i" && rm "$i"; echo "Converted $i to ${i%.*}.jpg"; done
 </code> </code>
  
howto/convert-images.1729456728.txt.gz · Last modified: 2024/10/20 21:38 by Wulf Rajek