Today, 07:31 AM
An API is not means for human beings, it is meant for programmers. In the script-fu console, hit the Browse... button, the search webp, click on the API on the left, and the doc appears on the right...
However from the message "Calling Plug-In PDB procedures with arguments as an ordered list is deprecated." it seems you are using Gimp3, so you may want to read this. In which case AFAIK you can skip all non-essential arguments and it will use defaults.
Last, I don't know why you want to use Gimp for this if you are on Linux. Just install ImageMagick (available in all distros), and then in a shell script it can be as simple as:
or on recent versions
Most operations you want to do in batch can be done with ImageMagick. For instance I have this line in a script to generate a low-resolution image of my photos. It adds some contrast (-modulate), scales (-geometry), and sharpens a bit.
However from the message "Calling Plug-In PDB procedures with arguments as an ordered list is deprecated." it seems you are using Gimp3, so you may want to read this. In which case AFAIK you can skip all non-essential arguments and it will use defaults.
Last, I don't know why you want to use Gimp for this if you are on Linux. Just install ImageMagick (available in all distros), and then in a shell script it can be as simple as:
Code:
convert foo.jpg foo.webp
or on recent versions
Code:
magick foo.jpg foo.webp
Most operations you want to do in batch can be done with ImageMagick. For instance I have this line in a script to generate a low-resolution image of my photos. It adds some contrast (-modulate), scales (-geometry), and sharpens a bit.
Code:
convert "$f" -modulate 100,120 -geometry ${size}x${size} -sharpen 0x1.0 -quality $quality "$out"