Page 1 of 1

build magick command line w/ a custom button

Posted: 11 Dec 2023 15:17
by backspace
Hi

I have a single line magick command to convert all png images in a folder into JPG as below:

Code: Select all

magick mogrify -path "%cd%" -quality 90% -density 72 -format jpg "%cd%\*.png"
How to transform it into XYplorer script? I want to apply it on a custom toolbar button.

Thanks
Rex C.

Re: build magick command line w/ a custom button

Posted: 11 Dec 2023 15:30
by highend
E.g.:

Code: Select all

runret(lax(magick mogrify -path "<curpath>" -quality 90% -density 72 -format jpg "<curpath>\*.png"));

Re: build magick command line w/ a custom button

Posted: 11 Dec 2023 15:58
by backspace
highend wrote: 11 Dec 2023 15:30 E.g.:

Code: Select all

runret(lax(magick mogrify -path "<curpath>" -quality 90% -density 72 -format jpg "<curpath>\*.png"));
Wow Thank you highend-san. It works great!

Rex