byteshiva / fantastic-octo-doodle

https://flipbooksample.netlify.app/
https://flipbooksample.netlify.app/
Apache License 2.0
0 stars 0 forks source link

convert png to webp format #2

Open byteshiva opened 3 years ago

byteshiva commented 3 years ago

https://wpmudev.com/blog/serve-images-next-gen-formats-webp/

byteshiva commented 3 years ago

https://stackoverflow.com/questions/58374189/convert-a-bunch-of-png-or-webp-images-to-a-webp-animation

Stack Overflow
Convert a bunch of png or webp images to a webp animation
How to convert a bunch of png or webp images into webp animation ? I tried this: convert mytiles.png -crop 100x100 +repage tmp.webp But I just get a bunch of webp images instead of an animation.
byteshiva commented 3 years ago

https://askubuntu.com/questions/1354205/imagemagick-convert-on-a-multiple-files

Ask Ubuntu
ImageMagick convert on a multiple files
I have 3 files in a directory: aaa.jpg bbb.jpg ccc.jpg I can scale down an image using ImagkMagick convert: convert aaa.jpg -resize 1200x900 aaa-small.jpg I want to do all the images in...
byteshiva commented 3 years ago

conver all filename with extension .png to .webp

for f in ./*.png; do convert "$f" -define webp:lossless=true "${f%.*}.webp"; done

https://tecadmin.net/how-to-extract-filename-extension-in-shell-script/

TecAdmin
How to Extract Filename & Extension in Shell Script
How to Extract Filename & Extension in Shell Script