I'm no php expert:
I'm looking for an easy way to export my pictures with text seperated into
a external directory so that it can be easily imported into some other
application building a simple html framework with the old text from the
gallery database.
Posts: 2322
Gallery doesn't provide a way to do this... maybe someone else has something.
Posts: 32509
what does "pictures with text" mean? pictues + comments + description + owning user?
if you're not familiar with PHP what exactly do you want to do? create a static gallery from gallery 1.x?
there's a utility in the download section to create a hardcoded/html gallery from your gallery 1.x, i.e. to burn it to cd and send it to friends.
or...
the easiest way would be to install G2, migrate your gallery 1.x albumbs to G2 and get the text / images from the database / API.
or take a look at the migration module in G2. this module reads from gallery 1.x data files and creates G2. perhaps you could alter this code to create your own framework.
or use the gallery 1.x API to read the serialized data files back, ...
Posts: 12
Yes, you're right, all I want to do is to extract the picture filenames related with the description as a simple table to use this as input for any application/ script.
I tried to use perl with the PHP::Serialization module to read the photo.dat files, but without much look, I'm unfamiliar with the gallery's data structures.
What do you mean by "gallery 1.x API to read the serialized data files"?
I'd prefer to stay with 1.4.x because this can be easily handled with my linux distribution.
Posts: 32509
as i don't know the gallery 1.x API, how they serialze etc. i'd use G2 for your task.
don't delete your gallery 1.x, just install G2 in another folder and migrate all gallery 1.x albums to G2. that doesn't alter gallery 1.x albums, it creates a copy of all images and reads the serialized data into the G2 database (mysql/postgresql).
if your familiar with php/mysql it will be very easy to create some tabulator delimited files that you could import to other applications.
or use phpmyadmin. after the gallery 1.x -> G2 migration you can use phpmyadmin to create MS excel or CVS compatible files.