Nconvert not replacing (copying over) the image it created

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

Moderators: helmut, XnTriq, xnview

Post Reply
Maalox
Posts: 3
Joined: Sun May 02, 2010 6:22 pm

Nconvert not replacing (copying over) the image it created

Post by Maalox »

Using: Rainmeter1.2 380 64 bit on Windows 7 x64, Nconvert x64

Hi, I am using nconvert to output images for desktop wallpaper in Rainmeter. The output size is 1920x1200, and the image turns out to be a little over 6MB. My problem seems to be with nconvert or the way I am using it:

If the desktop wallpaper image does not yet exist, nconvert creates the image as expected, but if the image already exists nconvert does not copy over it and replace it. I tried setting all the processes to run as Administrator, but this did not help. I first tried it in the Windows directory, and I have also tried it in my user directory without changing the behavior.

Code: Select all

LeftMouseDownAction=!Execute ["#dir#\util\fileExec.exe" "#dir#\util\nconvert.exe -v #MonitorResolution# -out png -o %%#dir#\Nostromo_wallpaper.png%%  %%[LoadPictures]%%" "%%#dir#\util\chWallpaper.exe%% %%#dir#\Nostromo_wallpaper.png%% center" -ew -swhide]
I had posted a similar question in the Rainmeter forum, but it looks like it might be more nconvert related: http://rainmeter.net/forum/viewtopic.php?f=5&t=3857

Anyone else have trouble getting nconvert to copy over the file it makes?

Thank you!
Maalox
Posts: 3
Joined: Sun May 02, 2010 6:22 pm

Re: Nconvert not replacing (copying over) the image it creat

Post by Maalox »

I had tried different output types. Now I have moved nconvert back to the Windows directory and am using .bmp again. If I delete the Nostromo_wallpaper.bmp in the Windows directory, then I can create it and set it again, but I can't get nconvert to copy over that again. Also, User Account Control if off, if that matters.

Code: Select all

LeftMouseDownAction=!Execute ["#dir#\util\fileExec.exe" "nconvert.exe -v #MonitorResolution# -out bmp -o %%%windir%\Nostromo_wallpaper.bmp%%  %%[LoadPictures]%%" "%%#dir#\util\chWallpaper.exe%% %%%windir%\Nostromo_wallpaper.bmp%% center" -ew -swhide]
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Nconvert not replacing (copying over) the image it creat

Post by xnview »

Now there is -overwrite
Pierre.
Maalox
Posts: 3
Joined: Sun May 02, 2010 6:22 pm

Re: Nconvert not replacing (copying over) the image it creat

Post by Maalox »

That's it! Thank you, Pierre.
Post Reply