New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the design problem of Lychee Photo Gallery #1
Comments
enhancement: 相册功能重新设计
导入功能重新设计
中图和小图统一放在lychee的.lychee_thumb 目录下, 缩略图路径与源目录路径保持映射关系, 也就是说,不依赖数据库,根据源文件路径,可以计算出缩略图的路径。 上传功能重新设计
|
While I see the attractiveness of such, I would say it makes managing duplicates harder.
This is already the case. Sources are in
This has already been solved. The command line
Will check it out. |
users may nerver care about what is 'big', what is 'small'. the only thing care is the original photo file. although, the Lychee may show the user thumbnail, but this is an thumbnails may generated dynamiclly, if needed. or use a cron job. no need to generate the same time the file uploading. and ,it can be purged or cleared safety. this is what I mean "source file should not treated like thumbnail in the same level." |
a symlink is kind of workaround, I did not see this feature before, thanks for reminding. |
your take a approach which is friendly to programmers but not friendly to users and the data.
a file named |
and also, I want to say, most of the framework, or application creators, take Lychee for an example, the key value format.
in the PHP code, I guess it just use so far, I think the most convenient way is the old take vue for example:
the point is:
<translate>Please enter your password to proceed:</translate> you can see the total string: and in PHP world, the but lot's of framework do invented their own wheels. although it maybe widely used. yeah, the implemtation is simple, and it does do the job,
this is not Lychee only, many project creators does not know what they are doing. yes, filebrowser is also a bad example (json format key: value translation): |
Don't get me wrong, but we are not against changing the translation interface. :) |
Lychee
is a very easy-to-use photo gallery. simple but beautiful.However, it does have some design problems
problem 1: user uploaded filename should not randomized or got obfucated. when the file leaves the Lychee app, it should be remaining meaningful, not something like unix timestamp or md5 hash you never know what this file do. a file named
dog.jpg
is more meaningful than a file named06d80eb0c50b49a509b49f2424e8c805.jpg
problem 2: source file should not treated like thumbnail in the same level.
source file should put in standalone directory. while thumbnail should generated under a dot directory like
.lychee-thumb
problem 3: the photo importing feature, which is totally wrong designed
while most usage case is, a user who has lot's of photos on a NAS, the Lychee app should not copy or delete the source file, it should only record the file path and insert it into DB. and then generate the required thumbnails. users who may have TB level photos, if copy again, it will be a lot of space waste and may encounter on performance problem.
Lychee should take
Synology Photo Station
orSynology Moments
as a good examplehttps://demo.synology.com/en-global
The text was updated successfully, but these errors were encountered: