Making pictures automatic fit into Greybox style

Had your computer crash on you, or a website shows wrong, or your printer went dead on you? Come on in...

Moderator: Crew

User avatar
Maz
Admin emeritus
Posts: 1938
Joined: Thu Mar 16, 2006 21:11
Location: In the deepest ShadowS
Contact:

Post by Maz »

and php could probs do it, but it would require you to have some rights on the server, and generally be quite unsafe. It is more convenient to use the script on local computer (not online). And yes, I am far more 'at home' with C and C++ :)
User avatar
Chroelle
Admin emeritus
Posts: 9870
Joined: Fri Feb 17, 2006 9:19
Location: Location, location...
Contact:

Post by Chroelle »

I tried it and got a little further. It asked me to if I wanted it to do like I said, and I said Y and enter. Then error occured.
Look at screenie.
Attachments
whatthe2.JPG
whatthe2.JPG (127.35 KiB) Viewed 8285 times
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)

www.paed-it.dk - My blog in Danish

Clothes make the man. Naked people have little or no influence on society.
--Mark Twain
User avatar
Maz
Admin emeritus
Posts: 1938
Joined: Thu Mar 16, 2006 21:11
Location: In the deepest ShadowS
Contact:

Post by Maz »

I'll jump on MSN. That seems oddish message...

But one thing I wish to point out is small and big letters in folder names like Documents and Settings, My Pictures etc. (I am not sure if that is the problem though). Could you also check if there's file called directory_contents.txt written in the piccie folder?
User avatar
Maz
Admin emeritus
Posts: 1938
Joined: Thu Mar 16, 2006 21:11
Location: In the deepest ShadowS
Contact:

Post by Maz »

Oh, and Christian Toft, not christian Toft :D
User avatar
Chroelle
Admin emeritus
Posts: 9870
Joined: Fri Feb 17, 2006 9:19
Location: Location, location...
Contact:

Post by Chroelle »

Third screenie after testing if it had to do with capital letters etc.

Also we discussed on ICQ (Since I dont have MSN anymore) if it was possible for the program to assume some of the foldernames. We decided more or less that that would be very limited help, since it would work only with that one folder, and as soon as you want to do something a bit different everything gets messed up.
Then we discussed if it could be done so that the program was assuming that the images in the folder the program itself was within was the ones it was supposed to work with, and we decided that that would be cool. :D
Then we both had to leave, and we would talk later tonight.
Attachments
Whatthe3.JPG
Whatthe3.JPG (138.24 KiB) Viewed 8277 times
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)

www.paed-it.dk - My blog in Danish

Clothes make the man. Naked people have little or no influence on society.
--Mark Twain
User avatar
Maz
Admin emeritus
Posts: 1938
Joined: Thu Mar 16, 2006 21:11
Location: In the deepest ShadowS
Contact:

Post by Maz »

It seems you forgot the starting " from 2.nd parameter. (template file path)
And at 2.nd attempt it seems that doImageFile.exe was not there anymore O_o (And also there seems to be one " missing ;) )
User avatar
Maz
Admin emeritus
Posts: 1938
Joined: Thu Mar 16, 2006 21:11
Location: In the deepest ShadowS
Contact:

Post by Maz »

Please ensure the executable and template.txt are in the folder, and try copy pasting this:

doImageFile.exe "C:\Documents and Settings\Chtistian Toft\My Documents\My Pictures\skal sorteres" "C:\Documents and Settings\Chtistian Toft\My Documents\My Pictures\skal sorteres\template.txt" outputscript.html http://www.sfo-fu.dk/Fotogalleri/Example

If it does not work, then try copy pasting this:
doImageFile.exe "C:\\Documents and Settings\\Chtistian Toft\\My Documents\\My Pictures\\skal sorteres" "C:\\Documents and Settings\\Chtistian Toft\My Documents\\My Pictures\\skal sorteres\template.txt" outputscript.html http://www.sfo-fu.dk/Fotogalleri/Example

(Copy pasting: copy as usual, go to command prompt window, go to the folder where images, doImageFile.exe and template.txt resides, right click and select paste. )
User avatar
Chroelle
Admin emeritus
Posts: 9870
Joined: Fri Feb 17, 2006 9:19
Location: Location, location...
Contact:

Post by Chroelle »

I will report back later.
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)

www.paed-it.dk - My blog in Danish

Clothes make the man. Naked people have little or no influence on society.
--Mark Twain
User avatar
Maz
Admin emeritus
Posts: 1938
Joined: Thu Mar 16, 2006 21:11
Location: In the deepest ShadowS
Contact:

Post by Maz »

Here's a simple version.

Instructions of usage:
1. Put template.txt and doImageFile.exe in the folder where your piccies are.
2. open command prompt, and go to the folder where images and template.txt and the proggie are.
2. type doImageFile.exe http://www.sfo-whateveritwas.dk/
3. hit enter.
Attachments
image_thingee_simple.rar
(151.29 KiB) Downloaded 377 times
User avatar
Maz
Admin emeritus
Posts: 1938
Joined: Thu Mar 16, 2006 21:11
Location: In the deepest ShadowS
Contact:

Post by Maz »

Here's the source.
Attachments
doImageFile.rar
(2.5 KiB) Downloaded 369 times
User avatar
Chroelle
Admin emeritus
Posts: 9870
Joined: Fri Feb 17, 2006 9:19
Location: Location, location...
Contact:

Post by Chroelle »

I will try and check this out tomorrow. I am currently going back to work until 9pm....:rolleyes:
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)

www.paed-it.dk - My blog in Danish

Clothes make the man. Naked people have little or no influence on society.
--Mark Twain
Post Reply