Page 1 of 1

ReImport Pictures

Posted: 2002-11-07 12:03:52
by Twink_
Hey its Twink (i'm feeling too lazy to login), I seem to have accidently wiped my pictures in my movie database, I still have them all exported to my html directory, was wondering if there was a script that could re import them as movie_(movienumber).jpg or gif where neccessary. It's gonna be alot of effort to redownload them all from the internet.

Posted: 2002-11-07 12:56:31
by antp
Unfortunately it is not possible with the program :/
But if you want I can quickly make a small tool that will search for a picture with a name+number, and check if it exists with .png/.gif/.jpg, then import it in the catalog or make a link to it.
I will try to do that this evening if I have time, or tomorrow.

Posted: 2002-11-07 22:44:17
by Twink
sweet, thanks man =).

Posted: 2002-11-08 19:29:46
by antp
Here is the program promised :
ftp://ftp2.antp.be/antp/software/amcimgimport.zip
It is a command line tool, it mean that you have to execute it from a DOS/Console window.
Put it in the folder where is your catalog (and all the pictures)
Then run it by :
amcimgimport mymovies.amc movie_ link
You can also put store instread of link oif you want to store the pictures in the database instead of link them.
You can put the images in another folder, e.g. a "pictures" subfolder, then call the program by :
amcimgimport mymovies.amc pictures\movie_ link
You can even specify the full path :
amcimgimport mymovies.amc "c:\my documents\my pictures\movies\movie_" link
(" " around the parameter are mandatory to specify that the path with its spaces is only one parameter)
Hope it will work
I tested it a little and seemed to work fine
In a future version of the program it will be possible to use the scripting to do such things, but it was faster to write this small thing that modify Ant Movie Catalog.

Posted: 2002-11-08 20:49:05
by Twink
thanks a heap man you saved me alot of time