Resize canvas by longest side with nconvert

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: helmut, XnTriq, xnview

polsino
Posts: 2
Joined: Thu Dec 16, 2021 2:22 pm

Resize canvas by longest side with nconvert

Post by polsino »

Hi! I wonder if it's possible to resize canvas size in a square format by the longest side with nconvert command line.
I've seen the function in XnView MP, unfortunately when i export the line doesn't work (with teh .bat file)
Thanks in advance
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 38251
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Resize canvas by longest side with nconvert

Post by xnview »

you have

Code: Select all

-canvas longest
Pierre.
polsino
Posts: 2
Joined: Thu Dec 16, 2021 2:22 pm

Re: Resize canvas by longest side with nconvert

Post by polsino »

Thanks. Can you tell me which argument I have to set after "longest" to make my canvas square?
I''ve only found an example with argument in mm, but it's not what I'm looking for

Code: Select all

- canvas longest 220mm
User avatar
xnview
Author of XnView
Posts: 38251
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Resize canvas by longest side with nconvert

Post by xnview »

you can use

Code: Select all

-canvas longest 200
Pierre.