Announcement

#1 2019-06-17 16:02:50

tjerram
Member
2019-06-17
2

Image Location

Hello/Hi/Greetings,

I am new to Piwigo and installed it on an Odroid HC2 in a docker.  All my photos are already on the Hard disk  My question is when I add a photo to Piwigo is there another copy of the image added to the hard drive somewhere Or does Piwigo simply store a reference to the images location in the database?

If it is storing another copy of the image where is it located and is there some way to prevent this.

Piwigo version:
PHP version:
MySQL version:
Piwigo URL: http://

Offline

 

#2 2019-06-17 21:07:47

kos
Member
2019-06-12
10

Re: Image Location

Create a symlink in your Piwigo folder to the directory where your pictures are stored.
Create a site in Tools > Site Manager directing to the symlink you just created.
Doing it that way, Piwigo does not store your pictures elsewhere (I think).

Offline

 

#3 2019-06-18 03:20:40

tjerram
Member
2019-06-17
2

Re: Image Location

Thanks for the info that is what I was hoping.  Can you tell me how (and where) to create a symlink.

Thanks

Offline

 

#4 2019-06-18 07:16:22

nicolas
Former Piwigo Team
2004-12-30
1179

Re: Image Location

When you add (upload) an image to Piwigo. Piwigo stores the orginal image under upload (can be changed by configuration) directory. That path is stored in the database.
I'm not sure I gave you the answer you hopped.

Offline

 

#5 2019-06-18 22:45:38

kos
Member
2019-06-12
10

Re: Image Location

I'm not a Linux expert, so I took the easy way and created the symlink via WinSCP.
So this is what I did:
- create a folder 'galleries' on a share on my NAS
- connect to my NAS via WinSCP
- navigated within WinSCP to the folder where Piwigo is installed, right click and select New > Link
- fill in the name of the link (I used 'galleries') and the path towards the folder you created earlier
- in Piwigo I configured the symlink as 'site'

now whenever I add a folder with pictures in the folder 'galleries' on my NAS and start the sync in Piwigo, it will add that folder as a new album

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact