Pictures in Gallery that are on a remote server?

wernerdebijl
wernerdebijl's picture

Joined: 2003-06-17
Posts: 8
Posted: Wed, 2003-07-02 09:07

Is it possible to show pictures in Gallery which are on a remote server?

Currently when I make a new folder inside Gallery I point to a website url where the pictures reside. When I add them to gallery it will download the pictures inside the images folder.
But is it possible that they are not downloaded.
I don't have a lot of bandwidth available. So when users look at my pictures on my site at home they download them constantly which generates to much traffic for me.

I hope this is possible. I have 50MB webspace available from my ISP, so I could place all pictures there. unfortunatelly my ISP doesn't support PHP and MySQL so I have to run the website at home.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-07-02 09:33

No, it's not possible. Gallery assumes it has write access. If you don't need uploading, comments and searching on your public site, you could try this:
http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Creating%20an%20Offline%20Copy

 
wernerdebijl
wernerdebijl's picture

Joined: 2003-06-17
Posts: 8
Posted: Wed, 2003-07-02 09:47

Maybe this is a nice to have in the future?

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-07-02 10:07

It's pretty complicated. You'd need to have a way creating thumbnails etc etc and uploading them to a remote site, and then telling gallery they are there. As a lot of users have trouble getting the albums url correct, who knows what trouble this may cause.

 
wernerdebijl
wernerdebijl's picture

Joined: 2003-06-17
Posts: 8
Posted: Wed, 2003-07-02 12:40

Yes oke, but now you specify the login info for your personal site. It should be possible to do the same with a remote site.
But I don't know the application inside-out. So I al just guessing.

I will give the Offline usage a try here. Tnx for drawing my attention to this option.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2003-07-06 15:50

What you want to do is already there, but in a form you may not have seen. It is called the "mirror" ... umm... thing. I use it myself and its great. Gallery can tell if an "album" found on the mirror is in sync and if it IS, it uses that for all pictures. All you need to do is point gallery to the url AND upload your /albums dir there.

I made my gallery webserver an rsync server and setup a cronjob on the mirror to rsync with my gallery site every hour. This keeps the mirror current at all times w/o any human interaction. You could also use an ftp script of some sorts, or just do it manually every time you update.

 
wernerdebijl
wernerdebijl's picture

Joined: 2003-06-17
Posts: 8
Posted: Sun, 2003-07-06 19:42

Wouw, that is wat i've wanted. and it is already there. GREAT! :D

So when I use the url to point to my images, they are synced with my website. But when users look at my gallery, the images are downloaded from the remote site. Great. :lol:

That is what I need indeed.

But how do i exactly sync between the images folders. Gallery doesn't automattically update the local gallery when I finds a new picture in the remote url? :-?

Thanx in advance

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2003-07-06 20:09

rsync is the easiest way, there's a script in the User Guide, under Scripts

 
wernerdebijl
wernerdebijl's picture

Joined: 2003-06-17
Posts: 8
Posted: Sun, 2003-07-06 21:32

OKe I will try it, but what I said was right then?!

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2003-07-06 21:38

Yep, exactly. If the gallery's are not synced, though, the images will be downloaded from the server that Gallery is on. Otherwise, they will be downloaded from a mirror server.