Page 1 of 1

Question for a new message

Posted: Wed Jul 10, 2019 9:38 am
by herb
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

Re: Question for a new message

Posted: Wed Jul 10, 2019 1:57 pm
by xnview
and

Code: Select all

-v

Re: Question for a new message

Posted: Wed Jul 10, 2019 2:26 pm
by herb
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

Re: Question for a new message

Posted: Thu Jul 11, 2019 10:49 am
by xnview
could you post an example?

Re: Question for a new message

Posted: Wed Jul 17, 2019 9:48 am
by herb
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

Re: Question for a new message

Posted: Wed Jul 17, 2019 12:29 pm
by xnview
so you would like to have the size of thumbnails (saved image)?

Re: Question for a new message

Posted: Wed Jul 17, 2019 12:42 pm
by herb
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

Re: Question for a new message

Posted: Thu Jul 18, 2019 8:50 am
by xnview
you have it here

Code: Select all

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

Re: Question for a new message

Posted: Thu Jul 18, 2019 10:41 am
by herb
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

Re: Question for a new message

Posted: Sat Jul 20, 2019 3:43 pm
by xnview
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?

Re: Question for a new message

Posted: Sat Jul 20, 2019 7:57 pm
by herb
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

Re: Question for a new message

Posted: Sun Jul 21, 2019 2:22 pm
by herb
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

Re: Question for a new message

Posted: Tue Jul 23, 2019 10:40 am
by xnview
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