NConvert as Explorer contextmenu

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

Moderators: XnTriq, helmut, xnview

PeterleB
Posts: 4
Joined: Mon Apr 26, 2021 2:31 pm

NConvert as Explorer contextmenu

Post by PeterleB »

Hallo,

I want to use nconvert with parameters to convert webp to jpeg in windows explorer (old menu).

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\.webp\Shell\convert]
@="Zu JPG konvertieren"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.webp\Shell\convert\command]
@="\"C:\\Program Files\\XnView\\NConvert\\nconvert.exe\" \"-out jpeg %1\""
The command is: "C:\Program Files\XnView\NConvert\nconvert.exe" "-out jpeg %1"

Nothing happens and no errors are displayed. What am I doing wrong?
PeterleB
Posts: 4
Joined: Mon Apr 26, 2021 2:31 pm

Re: NConvert as Explorer contextmenu

Post by PeterleB »

Hi,

I installed the executable and subfolders with plugins from xnview_full.zip new.
The new command is:
"C:\Program Files\XnView\nconvert.exe" "-out jpeg %1"

I see a brief command window but no new file is written.

Regards
Peter
cday
XnThusiast
Posts: 4173
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: NConvert as Explorer contextmenu

Post by cday »

PeterleB wrote: Tue Sep 27, 2022 6:55 am I installed the executable and subfolders with plugins from xnview_full.zip new.
The new command is:

Code: Select all

"C:\Program Files\XnView\nconvert.exe" "-out jpeg %1"
I see a brief command window but no new file is written.
Using NConvert in this way is well outside my experience, maybe Pierre can help? Or maybe Helmut or michel038??

If you haven't done so already, you might test using another input file format such as PNG, in case the issue is due to a missing WebP plug-in, for example.

Now you have NConvert opening, have you experimented with variations on the quotes in the terms "-out jpeg %1"? There are a number of possible variations including complete removal that you could test quickly, without thinking about the logic for using them!
User avatar
xnview
Author of XnView
Posts: 44817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: NConvert as Explorer contextmenu

Post by xnview »

PeterleB wrote: Tue Sep 27, 2022 6:55 am I see a brief command window but no new file is written.
could you try

Code: Select all

"C:\Program Files\XnView\nconvert.exe" -out jpeg "%1"
Pierre.
PeterleB
Posts: 4
Joined: Mon Apr 26, 2021 2:31 pm

Re: NConvert as Explorer contextmenu

Post by PeterleB »

Your suggestion with the changed quotation marks was correct.
It works!
Many Thanks.
:D :D :D :D