different result with xnview and export bat file

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
User283
Posts: 3
Joined: Tue Jun 25, 2013 7:02 am

different result with xnview and export bat file

Post by User283 »

Pls. help me solve my problem.

I have different result, if I use XnView and if I export that operation to .bat file.

That is bat file:
nconvert -npcd 2 -size 256x256+0 -ctype rgb -corder inter -out jpeg -o C:\Users\Hey\Desktop\testthumbs\thumbs\%%.jpg -ratio -rtype lanczos -resize 398 299 "C:\Users\Hey\Desktop\testthumbs\content\421481_b203911.jpg" "C:\Users\Hey\Desktop\testthumbs\content\421484_018e7ae.jpg" "C:\Users\Hey\Desktop\testthumbs\content\421488_bf4f58d.jpg" "C:\Users\Hey\Desktop\testthumbs\content\421489_db34820.jpg"

In bat file I can not find option that I outlined by red color on pucture. Pls. say me what option I need add to my bat file to receive the same result that in XnView?

That is picture of settings of XnView:
Attachments
screen.jpg
screen.jpg (76.4 KiB) Viewed 611 times
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: different result with xnview and export bat file

Post by xnview »

yes nconvert has not this option. You can try

Code: Select all

-resize shortest size
or

Code: Select all

-resize longest size
Pierre.
User283
Posts: 3
Joined: Tue Jun 25, 2013 7:02 am

Re: different result with xnview and export bat file

Post by User283 »

I try -resize shortest size and -resize longest size.

Pls. explain me, how I need use it.

If use -resize shortest size or -resize longest size only, but the size of pictutes not change.
If I use such variant: -resize 398 299 -resize longest size, I have the same result as -resize 398 299
If I use such variant: -resize 398 299 -resize shortest size, I have the same result as -resize 398 299

If I use variant:
-resize shortest size -resize 398 299 or -resize longest size -resize 398 299, I receive pictutes with width and height that I need, but without correct ratio. But .bat file with key: -ratio

So pls. say me how I can use it with correct aspect ratio?
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: different result with xnview and export bat file

Post by xnview »

No, try

Code: Select all

-resize longest 398
Pierre.
User283
Posts: 3
Joined: Tue Jun 25, 2013 7:02 am

Re: different result with xnview and export bat file

Post by User283 »

Thanks for your advise.

I try. But have different result, that with XnView. May be for you possible to put that XnView Option to next version of nconvert?

It will be good for me.

Thanks one more for such good program as XnView.

And one more, not found that XnView Option in XnConvert. May be also add it there.
Post Reply