#1 2025-06-17 10:59:48

axell
Member
2024-09-21
24

Media storage and filenames

Hello

where are the images stored when i upload them via the browser?
I found two locations:
_data/i/upload/2025/06/16
upload/2025/06/16
Why are there two different places containing the same(??) or different(??) versions of uploaded images?

The images in the folders have been renamed.
Can i keep the original filename?

Can i make Piwigo NOT use the data based folder structure (yyyy/m/d) and put it into one big folder?


What happens with the filename & folder structure when i upload via FTP?
Might that be the solution to all the questions above?

kind regards
axel

Offline

 

#2 2025-06-17 11:22:22

axell
Member
2024-09-21
24

Re: Media storage and filenames

Requested file not found - ../../_data/i/galleries/Veranstaltungen/Freitag-der-13te/freitag-der-dreizehnte-103-me.jpg

I think i found out, that
-- i need to create the folder structure i want in ..galleries/Veranstaltungen/Freitag-der-13te/
-- the system seems to generate the download sizes in ../../_data/i/galleries/Veranstaltungen/Freitag-der-13te/

BUT unfortunately it seems that the system did not generate all sizes.
In  ../../_data/i/galleries/Veranstaltungen/Freitag-der-13te/ i see only freitag-der-dreizehnte-103-sq.jpg and freitag-der-dreizehnte-103-xs.jpg.

Questions:
Is there another folder that might contain the different downloadsizes?
How do i initiate the generation of the files?


Kind regards
axel

Offline

 

#3 2025-06-17 15:24:16

windracer
Member
St. Pete, FL
2014-12-28
606

Re: Media storage and filenames

If you upload files into Piwigo, they end up under the uploads folder with the YYYY\MM\DD folder organization and random filename. The various re-sizes, thumbnails, etc. are stored under the corresponding YYYY\MM\DD folder under _data\i\upload as you saw. You can then organize the photos into any number of "virtual" albums.

Using FTP synchronization, you define the folder structure under the galleries folder (physical albums). This is what I do as I like to control the folder names and hierarchy. To automate some of the manual stuff (like generating all the thumbnails), check out @rw22mhhs's new plugin, AlbumPilot:

https://piwigo.org/forum/viewtopic.php?id=34301

Offline

 

#4 2025-06-18 18:28:23

axell
Member
2024-09-21
24

Re: Media storage and filenames

Hi Windracer,
thanks again.

I see...
This seems to be the easiest way.

Is this right?
When i want to change the structure (and if all metadata has been set prior uploading) then i just change the foldernames and / structure----> Synch it in Piwigo-----DONE

This seems pretty simple and easy
Anything i should consider when doing so?

kind regards
axel

Offline

 

#5 2025-06-18 19:03:01

windracer
Member
St. Pete, FL
2014-12-28
606

Re: Media storage and filenames

Yes, except for one thing to consider: if you physically move a photo from one album into another, and then run the sync in Piwigo to pick up the change, you'll lose all the metadata in Piwigo for that photo. If your details (like tags, name, description, etc.) are embedded in the file (IPTC/EXIF, etc.) then those will be re-loaded when the photo is "added" in its new location, but if not all of the metadata in Piwigo will then be empty.

I wrote a plugin that allows you to move photos from one physical folder to another, preserving all of that metadata in the Piwigo databse, [extension by windracer] Physical Photo Move.

Offline

 

Board footer

Powered by FluxBB

github linkedin newsletter Piwigo.org © 2002-2025 · Contact