"Win:" Usage on Xp Gives PhotoViewer Error

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
batbelt
Posts: 1
Joined: 2013-01-13T18:21:56-07:00
Authentication code: 6789

"Win:" Usage on Xp Gives PhotoViewer Error

Post by batbelt »

"WIN:" is broken on Xp due to a Windows-version-specific delegation. A workaround and a suggested fix are presented.

After installing ImageMagick-6.8.1-9-Q16-x86-dll.exe a message containing a two-command "confidence test" is displayed:

convert wizard: wizard.jpg
convert wizard.jpg win:

The second command should result in the wizard being displayed. Instead, it fails on Xp Pro SP3 with the error:

RUNDLL
Error loading C:\Program Files/Windows Photo Viewer/PhotoViewer.dll
The specified module could not be found.

This viewer exists on Win 7, but not on Win Xp.

A workaround is to replace the three occurences of:

"cmd.exe /C %%SystemRoot%%/System32/rundll32.exe "%%ProgramFiles%%/Windows Photo Viewer/PhotoViewer.dll", ImageView_Fullscreen file:///%i"

with this:

"imdisplay.exe "%i.""

This restores the previous behaviour of having "WIN:" use imdisplay for viewing.

If the intention is to use the native viewer, consider using "Cmd /C Start "%i." "%i.""
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: "Win:" Usage on Xp Gives PhotoViewer Error

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.1-10 Beta available by sometime tomorrow. Thanks.
Post Reply