Export feature for non PHP users available?

Pichuco

Joined: 2004-06-14
Posts: 12
Posted: Tue, 2004-07-27 14:13

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.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2004-07-28 01:09

Gallery doesn't provide a way to do this... maybe someone else has something.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2004-07-28 08:29

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, ...

 
Pichuco

Joined: 2004-06-14
Posts: 12
Posted: Wed, 2004-07-28 20:21

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.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2004-07-28 21:15

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.