IMatch To Coppermine Php Gallery Export
From ptWiki
By klaus (reflex)
With this script you can use Imatch to export images and image metadata to a coppermine php gallery (version 1.32 at present). The script is able to map a category tree from your Imatch database to a album/category structure in coppermine. I have written an introduction (included in the zip file) where you can find more details on what the script does and how to use it.
Update May 5, 2005
The previous version of the script had a bug that prevented images to appear in more than one cpg album. This should be fixed. The file imhelpers6.php is updated and should be copied to the server. Not much happened in coppermineexport.bas. Just added a little code to avoid trouble if a property string contains double quotes.
Update September 2, 2005
Now when you move a file in imatch and export to cpg, the cpg comments will be preserved. This holds true for a plain move. If you use the same image in several cpg albums, then only one of them will have the comments attched. Generally, I dont recommend to use the same image in different albums feature. Just copy the new version of imhelpers6.php to the cpg root of your server. The imatch script itself has not changed!
In addition I have provided a php script to move orphant files from the cpg/albums dir to a different location. Default is <cpgroot>/orphant (will be created if it doesnt exist). For example, if you manage your cpg gallery with my script and you delete a category from the export category tree in imatch, then after running imupdate.php the albums folder will still contain the image files from the removed category. With the script 'moveorphants.php' you can move those files to a different folder and later delete them using ftp. You must edit this script before you can use it. Open it in a text editor and search for 'EDIT HERE' and follow the instructions. Basically, you have to give your ftp login and path.
klaus
Khodadad: There is a thread about this script <a href="http://ptforum.photoolsweb.com/showflat.php?Cat=0&Number=360&an=0&page=0#Post360" target="_blank">here</a>
See also <a href="http://ptforum.photoolsweb.com/showflat.php?Number=10068#10068" target="_blank">here.</a>
* Script file: Download this script
* See the Script downloading and installation instructions for generic information about using scripts downloaded from the IMatch Wiki.