Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Export albums to HTML for CD distribution  (Read 6566 times)

0 Members and 1 Guest are viewing this topic.

Mich Buchanan

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Export albums to HTML for CD distribution
« on: March 22, 2004, 12:27:08 am »

I have a suggestion, it would be nice to add an option to export albums/galeries/categories to an HTML album (or maybe XML or something else) for CD/DVD distribution.

And thanks for your great gallery script!!!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Export albums to HTML for CD distribution
« Reply #1 on: March 22, 2004, 12:58:04 am »

Good point, I have added this to my ever-increasing todo-list.

GauGau
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Export albums to HTML for CD distribution
« Reply #2 on: March 22, 2004, 05:14:04 am »

I have had this on my list as well for long....  The problem I have is how will the work and program flow will be....

1) Will it work only for albums, what if I want multiple albums?

2) How detailed will be the HTML (is HTML needed at all?)

3)  Where will the script be linked from?

4) Since this is going to be an export - I presume that it will be downloaded as a zip - creating large zips in memory like I currently do for downloading favs will surely kill the server for large albums

Comments welcome....
Logged
SANIsoft PHP applications for E Biz

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Export albums to HTML for CD distribution
« Reply #3 on: March 22, 2004, 06:30:54 am »

since this should be an admin option only imo, I guess it'd be enough to have a folder created within coppermine where all necessary html (with relative links to the pics inside the album folder) is created, leaving the pics at their place. Once the creation of the html code is finished, the admin is told to download the newly created folder and the albums dir by ftp and burn it to a CD (maybe plus one index.htm page that he has to put into the root of the CD).
I'll take a look on a website copier software like HTTrack and see how it will handle a large coppermine install, what the html it creates will look like.

GauGau
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Export albums to HTML for CD distribution
« Reply #4 on: March 22, 2004, 07:23:00 am »

In that case the answer could be simpler - Have a theme which does not have the menu and / or admin menu / anyother blocks and no Home in breadcrumb

I know that wget -r -nc -np http://yourgallery.com/thumbnails.php?album=2 works great!! I am sure any website slurper will work great!!

So in case you want to allow slurping you upload that theme ;)

On the other hand I don't get how we can just create/copy HTML and not copy the image thumbnails and it would still work....

Also soon users will want to be able to download their own albums...

I have been thinking how about modifying the download as Zip to include the directory hierarchy based on the category and albums...

For example if picture tarique.jpg is in album Family which is in the category People then the zip will have (and thus create) folders and files like

/People/Family/tarique.jpg

Similarly if  later I download a picture called gaugau.jpg which is in the Album CPG Devs in the category People the zip will have folders like

/People/CPG Devs/gaugau.jpg

I think if you have such a structure on you local hard disk creating an offline album using any of the available freeware / commercial gallery creators will be simple...

More comments welcome....
Logged
SANIsoft PHP applications for E Biz

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Export albums to HTML for CD distribution
« Reply #5 on: March 22, 2004, 07:35:50 am »

Quote from: "tarique"
On the other hand I don't get how we can just create/copy HTML and not copy the image thumbnails and it would still work....
err yes, I didn't bear this in mind: people would have to download the contents of the albums folder as well to get the thumbs and intermediates :oops:
    IMO there are two different reasons for people wanting to have an offline gallery on a CD:
  • some just want the pics, no matter in what layout, to be able to give away slideshows to people who don't have acces to the internet or are on a slow connection.
  • some (especially companies/professionals) will want to have the look and feel of their website their pics are embedded in as well[/list:u]maybe there will have to be different approaches for both of these groups.

    GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.