Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

23 votes
4 answers
53881 views
webp animation to gif animation (cli)
I was surprised today to find apparently how difficult it is to go from a `webp` animation to `gif` animation. My `GIMP 2.8.22` and `ImageMagick 7.0.7-21` on `linux 4.14.13-1-ARCH` don't seem to support the format, and the only tool available in repos seem to be `libwebp 0.4.1` which includes a deco...
I was surprised today to find apparently how difficult it is to go from a webp animation to gif animation. My GIMP 2.8.22 and ImageMagick 7.0.7-21 on linux 4.14.13-1-ARCH don't seem to support the format, and the only tool available in repos seem to be libwebp 0.4.1 which includes a decode tool that lets you extract individual frames to some image formats, none of them being gif (It's a licensing problem maybe?) Anyway, I used the following script: #!/bin/bash DELAY=${DELAY:-10} LOOP=${LOOP:-0} r=realpath $1 d=dirname $r pushd $d > /dev/null f=basename $r n=webpinfo -summary $f | grep frames | sed -e 's/.* \([0-9]*\)$/\1/' pfx=echo -n $f | sed -e 's/^\(.*\).webp$/\1/' if [ -z $pfx ]; then pfx=$f fi echo "converting $n frames from $f working dir $d file stem '$pfx'" for ((i=0; i /dev/null Which creates a gif animation from the extracted frames of the file supplied in the first argument. I tried it on this file and the resulting file was kind of artifacty. Is it proper form to post in this forum for suggestions of improvement of the procedure/invocations? And: If there are custom tools for this conversion, please share your knowledge! :)
lash (811 rep)
Jan 26, 2018, 04:02 AM • Last activity: Jan 18, 2023, 12:38 PM
1 votes
1 answers
211 views
Exiv2: How to print tag values without printing the corresponding filenames
I'm using `exiv2` 0.27.2. I want to print the tag values of multiple `webp` files, but without the filename being printed. With the following command: exiv2 -g Exif.Image.Artist -Pv *.webp I get the following output: 3q2NIGNI_o.webp tomato 3qAwrJWu_o.webp orange 3qDZg9vz_o.webp cantelope I just want...
I'm using exiv2 0.27.2. I want to print the tag values of multiple webp files, but without the filename being printed. With the following command: exiv2 -g Exif.Image.Artist -Pv *.webp I get the following output: 3q2NIGNI_o.webp tomato 3qAwrJWu_o.webp orange 3qDZg9vz_o.webp cantelope I just want the tag name output, without the filename, like so: tomato orange cantelope
whitewings (2527 rep)
Jan 5, 2023, 11:52 AM • Last activity: Jan 5, 2023, 09:21 PM
4 votes
1 answers
4511 views
Convert Webp to PDF
I want to convert a bunch of Webp images to individual PDFs. I'm able to do it with this command: `parallel convert '{} {.}.pdf' ::: *.webp` or I can use this FFMPEG command: `find ./ -name "*.webp" -exec dwebp {} -o {}.pdf \;` However during the process of conversion the Webp files are decoded and...
I want to convert a bunch of Webp images to individual PDFs. I'm able to do it with this command: parallel convert '{} {.}.pdf' ::: *.webp or I can use this FFMPEG command: find ./ -name "*.webp" -exec dwebp {} -o {}.pdf \; However during the process of conversion the Webp files are decoded and the resultant PDFs have a much bigger file size. When I use the above commands for JPG-to-PDF conversion the PDF size is reasonably close to the JPG image size. This command works fine with JPGs, but the program img2pdf doesn't work with the Webp format: find ./ -name "*.jpg" -exec img2pdf {} -o {}.pdf \; I also tried Webp-to-PDF conversion with this online service , but the PDF was huge. How can I keep the PDF size down to the Webp file size?
whitewings (2527 rep)
Jan 15, 2018, 04:43 PM • Last activity: Mar 24, 2022, 01:42 PM
0 votes
1 answers
348 views
How to compile graphicsmagick with webp support
So I'm trying to compile graphicsmagick with webp support... I've run ```none yum install libwebp libwebp-dev ``` I've added the `libwebp.a` library from [google][1]. And I add the `--with-webp` flag to the `./configure` line. I've managed to take it from: ```none checking for WEBP support ... check...
So I'm trying to compile graphicsmagick with webp support... I've run
yum install libwebp libwebp-dev
I've added the libwebp.a library from google . And I add the --with-webp flag to the ./configure line. I've managed to take it from:
checking for WEBP support ... 
checking webp/decode.h usability... no
checking webp/decode.h presence... no
checking for webp/decode.h... no
checking webp/encode.h usability... no
checking webp/encode.h presence... no
checking for webp/encode.h... no
checking for WebPDecodeRGB in -lwebp... no
checking for WebPMuxSetImage in -lwebpmux... no
checking if WEBP package is complete... no -- some components failed test
To
checking for WEBP support ... 
checking webp/decode.h usability... no
checking webp/decode.h presence... no
checking for webp/decode.h... no
checking webp/encode.h usability... no
checking webp/encode.h presence... no
checking for webp/encode.h... no
checking for WebPDecodeRGB in -lwebp... yes
checking for WebPMuxSetImage in -lwebpmux... no
checking if WEBP package is complete... no -- some components failed test
So only the checking for WebPDecodeRGB in -lwebp has changed. What do I do?
Michael Wiles (111 rep)
Nov 24, 2021, 12:36 PM • Last activity: Nov 24, 2021, 03:55 PM
6 votes
1 answers
4596 views
Cwebp -resize only if image is larger
cwebp - Compress an image file to a WebP file `-resize width height` Resize the source to a rectangle with size `width` x `height`. If either (but not both) of the width or height parameters is 0, the value will be calculated preserving the aspect-ratio. The -resize option resizes the image to width...
cwebp - Compress an image file to a WebP file -resize width height Resize the source to a rectangle with size width x height. If either (but not both) of the width or height parameters is 0, the value will be calculated preserving the aspect-ratio. The -resize option resizes the image to width but I want resize to occur only if image is larger than specified width x height.
Garvit Jain (161 rep)
Jan 29, 2019, 04:37 AM • Last activity: Jul 31, 2020, 08:40 AM
Showing page 1 of 5 total questions