Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // By default, this assumes use of the 'convert' program from ImageMagick.
- // See if the conversion command uses magick. If so, don't use the
- // -coalesce option.
- if (gMainCfgObj.PathToImgToSixelConv.toUpperCase().indexOf("MAGICK") > -1)
- cmd = format("\"%s\" \"%s\" %s \"%s\"", gMainCfgObj.PathToImgToSixelConv, pSrcImgFilename, pScale ? ("-resize " + maxWidth + "x" + maxHeight + " ") : "", pDestImgFilename);
- else
- cmd = format("\"%s\" -coalesce \"%s\" %s \"%s\"", gMainCfgObj.PathToImgToSixelConv, pSrcImgFilename, pScale ? ("-resize " + maxWidth + "x" + maxHeight + " ") : "", pDestImgFilename);
- // If running on Windows, it seems we need an additional set of double-quotes around the whole command line
- if (/^WIN/.test(system.platform.toUpperCase()))
- cmd = format("\"%s\"", cmd);
Add Comment
Please, Sign In to add comment