Question for a new message

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

Post Reply
herb
Posts: 156
Joined: Sat Jul 18, 2009 3:19 pm

Question for a new message

Post by herb » Wed Jul 10, 2019 9:38 am

Hello,

I use NConvert.exe on a Windows 7 system to generate e.g. thumbnails for my *.jpg images.

Code: Select all

NConvert.exe -half_res -ignore_errors -thumb XXXX XXXX -overwrite -out jpeg -o outputfile.jpg
It works properly, but it would be very very helpful to know also width and height of the original/source image.
So I ask to enhance NConvert with a message that responds height and width also:
E.g.:
Conversion of F:\WORK\test.jp2 into C:\Temp\test_prvws.jpg OK
Size of sourcefile: 5202 3465

Thanks in advance
Best regards
Herb

User avatar
xnview
Author of XnView
Posts: 31261
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Question for a new message

Post by xnview » Wed Jul 10, 2019 1:57 pm

and

Code: Select all

-v
Pierre.

herb
Posts: 156
Joined: Sat Jul 18, 2009 3:19 pm

Re: Question for a new message

Post by herb » Wed Jul 10, 2019 2:26 pm

Hello Pierre,

thanks for your quick reply and thanks for your hint.

Yes there is some output displayed from the plugin(s), but I regret I do not know what info is displayed there.
The text shows some width and height, but the values are always different from width and height of the source file and also different from width and height of the generated thumbnail.

Best regards
Herb

User avatar
xnview
Author of XnView
Posts: 31261
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Question for a new message

Post by xnview » Thu Jul 11, 2019 10:49 am

could you post an example?
Pierre.

herb
Posts: 156
Joined: Sat Jul 18, 2009 3:19 pm

Re: Question for a new message

Post by herb » Wed Jul 17, 2019 9:48 am

Hello Pierre,

For a *.jp2 image with width and height 7500 x 10026 pixel I use the following command:

Code: Select all

nconvert.exe -half_res -ignore_errors -thumb 512 512 -overwrite -out jpeg -v -o testout.jpg test.jp2
and nconvert displays:

Code: Select all

** NCONVERT v7.25 (c) 1991-2019 Pierre-E Gougelet (Jan 15 2019/12:03:44) **
        Version for Windows NT/9x/2000/Xp/Vista/7  (All rights reserved)
** This is freeware software (for non-commercial use)

A LuraWave JPEG-2000 Format (RGB) - Wavelet was recognized : test.jp2
    Width:937 Height:1253 with 256 colors
    Nplanes : 1      Bitscount : 8
    Bytes Per Plane : 937
    xdpi : 0         ydpi : 0
Conversion of test.jp2 into F:\testout.jpg OK

##########################Files opened: 1
Files written: 1
and width and height of converted image is: 382 x 512 (as requested with -thumb).

By the way: a newline between # and Files opened would also be very helpful.

Best regards
Herb

User avatar
xnview
Author of XnView
Posts: 31261
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Question for a new message

Post by xnview » Wed Jul 17, 2019 12:29 pm

so you would like to have the size of thumbnails (saved image)?
Pierre.

Post Reply