Comments (4)
(I'm just putting old "future enhancement ideas" on the paper now that we have a GitHub (-: )
from myphotoshare.
I had thought about something this problem, too. I have 38k photos, and I'm afraid that some day I'm going to reach the os limit.
My idea was to implement a folder structure based on md5: calculate md4 of the path+name or of cachepath and take the first two chars of it as folder name, this way chache will be subdivide into 256 folders
from myphotoshare.
That would make it somewhat hard to "locate" files manually?
How about using the first two characters of the album as the folder name? That would theoretically limit it to 26^2 folders (or some more if you count non-english characters), but would in reality be much less. It would also make it somewhat intuitive to locate the cached files (if you'd like to alter/manage/delete/whatnot them), as you'd only need the album name to derive the folder. In addition, this would cause all the files for the same album to be in the same folder (and not split into several folders, which would be the case in your example).
from myphotoshare.
done in cacheSubDirs branch
for a given photo, the thumbnails are put in a cache subfolders identified by the first two characters of the md5 of the image path+name, the subdir is saved in the json files so that it's retrieved easily
the json files carry the cache path of every photo, so that a js call is saved
from myphotoshare.
Related Issues (20)
- album.ini metadata has trouble with Python 2 when filenames have accented characters HOT 4
- ready for 3.4? HOT 20
- managing stop words in js? HOT 2
- album.ini name in options file HOT 7
- Problems with non-occidental languages? HOT 2
- Roadmap for version 3.5 HOT 3
- Optimization of index files creation HOT 4
- do not generate nor save virtual albums if not needed HOT 6
- Add options to display descriptions
- Bugs when used on iPad or mobile phone HOT 5
- privacy concerns when showing original image HOT 4
- Allow % characters in `album.ini` files
- same image in different folders generates trouble in search result
- space for folder name not corrected
- social bar: add a button to get the share link copied to clipboard
- Add option to go directly to image fullscreen
- Set cache subfolders number according to media number
- use os.walk to scan directories in TreeWalker.walk() HOT 1
- wrong album caption height
- copy copyright info to reduced size images and thumbnails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myphotoshare.