Re: PIL + show() + Vista



Méta-MCI (MVP) wrote:
Hi, Tim!

You are right, for shimgvw.dll (on XP / 2000, or some Vista). But others Vista (ou users practice) had associate images with WindowsPhotoGallery.exe.

But shimgvw.dll already exist.

I found that this line:

command = 'start "%s" /wait %s\\System32\\rundll32.exe %s\\System32\\shimgvw.dll ImageView_Fullscreen %s && del /f "%s" ' % (title,os.environ['SYSTEMROOT'],os.environ['SYSTEMROOT'],file,file)

launch a "Photo Gallery" who respect the WAIT.

For me (and my users), it's a solution. Perhaps others PIL's users can read that with interest.

I'm glad you found a solution. I think my point was that
you can use the FindExecutable API to determine whatever
is associated and use that (special-casing the shimgvw DLL
to use RunDLL). Obviously, if that executable doesn't
honour the wait then you're stuck, so maybe using shimgvw
universally is the solution.

TJG
.



Relevant Pages

  • Re: Word 2007 produces very large Word 2003 compatible files
    ... It isn't just that the option is named differently in Vista, ... I don't have access to Vista right now to give you the exact wording but it's along the lines of "Always save preview thumbnail". ... Mainly this is because the thumbnail is saved as a small graphic in the ZIP package instead of the large embedded image (sometimes 2 images depending on the image file type) saved in the old file format. ...
    (microsoft.public.word.application.errors)
  • Re: Images/CSS not resolving on dev machine testing
    ... I actually wrote it way back before vista came around. ... I am developing a website with VS2005 and VB. ... To test the project and have all relative references ... That is when I lose my images and css styles. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: PP Photo album: Insert Picture from dialog, resorts images.
    ... I could be Vista vs XP because I don't remember this happening in Vista. ... Echo [MS PPT MVP] http://www.echosvoice.com ... Fixing PowerPoint Annoyances http://tinyurl.com/36grcd ... and navigate to the set of images I want to put into the photo ...
    (microsoft.public.powerpoint)
  • Re: OSD FP update with SP2 ?
    ... It was just released to the Vista Beta testers but will not be ... edit) images for XP as well as Vista but you will have to recapture your ... existing OSD). ... "Bruno" wrote: ...
    (microsoft.public.sms.tools)
  • Re: Windows Photo Gallery Substitute
    ... Even if it were on another partition and you browse it from within Vista, all the same facilities would still be available to you. ... In WPG, when you type the beginning letters of the tag, all pertinent tagged images appear immediately. ... WPG is actually still very fast when loading single images, or after the library is already loaded, but 13 seconds for the initial load is entirely too slow. ...
    (microsoft.public.windows.vista.general)