Question for a new message

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

Moderators: XnTriq, xnview

Post Reply
herb
Posts: 160
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: 31881
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: 160
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: 31881
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: 160
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: 31881
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.

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

Re: Question for a new message

Post by herb » Wed Jul 17, 2019 12:42 pm

Hello Pierre,

NO!
I asked for width and height of the original or source image.
Because my command contains option "-thumb xxxx xxxx" width or height of the generated thumbnail are eqal xxxx.

I think that Nconvert must read the sourceimage first; so it should always know its width and height.

Best regards
Herb

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

Re: Question for a new message

Post by xnview » Thu Jul 18, 2019 8:50 am

you have it here

Code: Select all

Width:937 Height:1253 with 256 colors
the luratech plugin only recognize this size...
Pierre.

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

Re: Question for a new message

Post by herb » Thu Jul 18, 2019 10:41 am

Hello Pierre,

this seems to be very strange for me, because XnViewMP knows the real width and height.
In my example it is 7500 x 10026 and not 937 x 1253.

Best regards
Herb

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

Re: Question for a new message

Post by xnview » Sat Jul 20, 2019 3:43 pm

herb wrote:
Thu Jul 18, 2019 10:41 am
Hello Pierre,

this seems to be very strange for me, because XnViewMP knows the real width and height.
In my example it is 7500 x 10026 and not 937 x 1253.
XnView Mp use luratech plugin?
Pierre.

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

Re: Question for a new message

Post by herb » Sat Jul 20, 2019 7:57 pm

Hello Pierre,

thanks for your investigations and your comments.

On the plugin page for NConvert I found another plugin, which gives the correct height and width.
So I have to analyse which plugins I can use for the various supported file formats.

Thanks again and
Best regards
Herb

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

Re: Question for a new message

Post by herb » Sun Jul 21, 2019 2:22 pm

Hello Pierre,

I am working on a Windows 7 64-bit system.
NConvert I use is the 32-bit version, because as far as I know more plugins are available on https://www.xnview.com/en/xnview/#addons

For e.g. *.webp images
- the downloaded *.zip file with all availabe plugins contains a file: webp.dll from 26.7.2012
- the downloaded file webp.zip contains: webp.dll from 19.1.2015
- the XnViewMP 32-bit distribution contains libwebp.dll from 30.1.2019.

Only libwebp.dll works well for me when I try to convert *.webp images to *.jpg images.

For e.g. *.jp2 images
- the downloaded *.zip file with all available plugins contains 2 files from 2004 and 2011
- the XnViewMP 32-bit distribution contains openjp2.dll from 5.12.2018

Only openjp2.dll is working well.

So I ask: is there an overview available where we can find the latest (and properly working) plugins we should use with NConvert 32-bit and also 64-bit.

Thanks for your help in advance.
Best regards
Herb

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

Re: Question for a new message

Post by xnview » Tue Jul 23, 2019 10:40 am

herb wrote:
Sun Jul 21, 2019 2:22 pm
So I ask: is there an overview available where we can find the latest (and properly working) plugins we should use with NConvert 32-bit and also 64-bit.
I'll fix the webp.zip
you can take plugins from XnView MP package
Pierre.

Post Reply