![]() "dmm Convert PNG to JPG" script descriptionĪnd launch it using this script (I named it pngtojpg.sh for example) : # pngtojpg.sh 0.75 quality (float 0 /Xtns/Script-Fu/dmm/dmmConvertPNGtoJPG" where it goes (file-jpeg-save 1 image drawable outfile outfile (define (dmmConvertPNGtoJPG infile outfile) For command-line invocation, use the shell script pngtojpg.sh Give execution to the script and start it : chmod +x rgbtogs.shĬreate a GIMP Script-Fu file (named here dmmConvertPNGtoJPG.scm and saved in $HOME/.gimp-2.8/scripts) : dmmConvertPNGtoJPG.scm - GIMP Script-Fu to Convert PNG to JPG # Invoke The GIMP with Script-Fu dmmPNGtoGrayscale.scmĮcho "Usage: rgbtogs.sh degrees filebasename"Įcho "Error: Parameter (filename base) required" ![]() SF-FILENAME "Infile" "infile.png" default parametersĪnd launch it using this script (I named it rgbtogs.sh for example) : # rgbtogs.sh "dmm PNG (RGB or Indexed) to Grayscale" script description "/Xtns/Script-Fu/dmm/dmmPNGtoGrayscale" where it goes "dmmPNGtoGrayscale" script name to register (script-fu-register I always forget these. 0 Write pHYS chunk? backwards in DB Browser 0 Write tIME chunk? backwards in DB Browser (file-png-save 1 image drawable outfile outfile (drawable (car (gimp-image-active-drawable image))) (let* ((image (car (file-png-load 1 infile infile))) ![]() (define (dmmPNGtoGrayscale infile outfile) For interactive invocation, run The GIMP and go to For command-line invocation, use the shell script rgbtogs.sh This Script-Fu must be put in The GIMP's script directory Open an image is really easy ( image.png is the image that you want to open) gimp image.pngĬreate a GIMP Script-Fu file (named here dmmConvertPNGtoGrayscale.scm and saved in $HOME/.gimp-2.8/scripts) : dmmPNGtoGrayscale - GIMP Script-Fu to convert a PNG image to Grayscale ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |