kvarnerexpress 0 Report post Posted June 26, 2005 What I am trying to do is make up a small HTML site which will be based localy on my computer and basicly show all of the images I have taken on different holidays. What I want though is when I click on an image for it to be opened up in Windows Picture Viewer. As the web site will all be saved locally on my computer and not be going on the internet is there any way of achiving this? I am running Windows XP Professional if it makes any differenceThank you in advance,kvarnerexpress Share this post Link to post Share on other sites
Saint_Michael 3 Report post Posted June 26, 2005 hmmm not that i know of the only way that can be done if someone saved the image on the computer then open it up might be some php or javascripting in it but i am not to sure about it Share this post Link to post Share on other sites
truefusion 3 Report post Posted June 26, 2005 Not everyone has windows xp, and saint_michael is right. The only way that could possibly happen is if the user saves the images onto a computer which supports the picture viewer. When you click on a link to an image, the browser automatically downloads it and previews it on the browser, it doesnt give you the option to open or save onto a designated folder. Share this post Link to post Share on other sites
round 0 Report post Posted June 26, 2005 the question i have to ask is why? no one ever does that and you wouldn't be able to upload the site to a sever and have it work that way. why not just open up photoshop and in the actions just create a picture gallery. That takes like 5 minutes, you could play with the html afterward if you wanted. They have several different designs.round Share this post Link to post Share on other sites
ashiezai 0 Report post Posted June 26, 2005 Yes, you can open images in picture viewer of your own instead of browser like internet explorer.1.Right click the image file2.Choose open with3.Select the program (pictureviewer of yourown)4.Remember to check "always use the selected program to open this kind of file"5.Off you go:rolleyes: It's easy Share this post Link to post Share on other sites
moldboy 0 Report post Posted July 8, 2005 Let me first of all say, I know what you want, and Am working on it, a few glitches currently. But let me start by replying: the only way that can be done if someone saved the image on the computer then open it up might be some php or javascripting in it but i am not to sure about itThe image is already saved on the computer, did you not hear the part about not putting it on the web?Not everyone has windows xp, and saint_michael is right. The only way that could possibly happen is if the user saves the images onto a computer which supports the picture viewer.You're right not everyone has WinXP, fortunatly for kvarnerexpress that doesn't matter because as it was said this will be a local thing and he has WinXP! the question i have to ask is why? no one ever does that and you wouldn't be able to upload the site to a sever and have it work that way. why not just open up photoshop and in the actions just create a picture gallery. That takes like 5 minutes, you could play with the html afterward if you wanted. They have several different designs.Okay this one I have to break downthe question i have to ask is why?You know what I aggree with that, but that's as far as I will go, why not use a nice photo organizing program like Picasa, it's free.you wouldn't be able to upload the site to a sever and have it work that way. See above about not going online.why not just open up photoshop and in the actions just create a picture gallery. That takes like 5 minutes, you could play with the html afterward if you wanted. I believe he doesn't want this because once you creat a gallery in photoshop you can't zoom or pan the way you can in Imageviewer. So you ask why not use explorer in thumbnail view? Good question, I would assume because hw wants to add a little html flair and not have to wait for thumbnails to build.And finaly:Yes, you can open images in picture viewer of your own instead of browser like internet explorer.1.Right click the image file2.Choose open with3.Select the program (pictureviewer of yourown)4.Remember to check "always use the selected program to open this kind of file"5.Off you go It's easySee the problem is when you build an HTML file you can't right click on anything and choose openwith, it just ain't an option.Now on to what I believe could be the solution, I must warn that I havn't got it to work, but perhapse we could work on it together.Because MS is dumb they don't use the .exe file format for any of their programs what they do is make each program a .dll and then point to rundll32.exe in hopes that it will parse it, there is probably an advantage to doing it this way, however I can't see it! Now what you'd need to do is point to the picture viewer program with the file name you wanted to open. normaly, in the traditional way of windows if you wanted to open a .wav with sound recorder you would create a shortcut to "sndrec32.exe mysound.wav" but the more advanced .dll programs have many options and don't work simply like that. (which might I add is to bad) So intheory what you'd need to do is create a href link to "sndrec32.exe mysound.wav" when you opened that in the borwser you may still have to choose open upon clicking the link but it should work. The problem we now have it opening the image in imageviewer, we first need the path to the program. which can be found by opening any folder and going Tools >>Folder Options, and then the filetypes tab, now in my configuration I scroll down to JPEG file type which should by default be set to open with Image Viewer, if it isn't you choose change, and this will get you the same dialog that ashiezai was talking about. NOw if it is already choosen we choose advanced, then the open action and edit. This will reviel to us that the path to image viewer is really "rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen %1" Noww the intresting thing about this path is the %1 this is where windows will put the path to the image when you doubble click it, so in theory if we put the path to an image in place of %1, and place the whole thing in a shortcut, or better yet a weblink, it would open image viewer with the selected image viewable, unfortunatly it doesn't, so anybody know why that might be we could get along further in the production, otherwise...Oh, and I'd like to appoligize to anybody who might be offended by the above comments I know you were trying to help, as am I, feel free to harass this post as I currently don't have a solution to the asked question, just a start. I have a few free days to work on this, so I just might make it work. Share this post Link to post Share on other sites
it01y2 0 Report post Posted July 8, 2005 Hello replying form you reuquest and I have found that if your rightclick on the image and properties There should be a options which allows you to make it popup (this is on frontapge) Share this post Link to post Share on other sites
moldboy 0 Report post Posted July 8, 2005 Yes but if it pops up you still won't have the control I think he wants with image viewer, things like zoom and open for editing, you know. Share this post Link to post Share on other sites