build magick command line w/ a custom button

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
backspace
Posts: 2
Joined: 11 Dec 2023 15:12

build magick command line w/ a custom button

Post 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.

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: build magick command line w/ a custom button

Post by highend »

E.g.:

Code: Select all

runret(lax(magick mogrify -path "<curpath>" -quality 90% -density 72 -format jpg "<curpath>\*.png"));
One of my scripts helped you out? Please donate via Paypal

backspace
Posts: 2
Joined: 11 Dec 2023 15:12

Re: build magick command line w/ a custom button

Post 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

Post Reply