beradeep / whitehole

Simple photo manager on top of Telegram.
Apache License 2.0
234 stars 18 forks source link

Browseable and useful Telegram Group Backend #14

Open hlecuanda opened 3 months ago

hlecuanda commented 3 months ago

Please confirm the following

Hello. First and foremost, Thank you for the great app you're developing, this is exactly what I was looking for as an alternative / Backup solution to Google Photos.

Description

Make the Backend Telegram Groups Browseable, Searchable and Useful

Justification

More often than not, I end up searching google photos for a picture to send via telegram, which ends up downloading said photo back to my phone to then upload again to a conversation or or channel in telegram

If I'm already using s group to backup my photos I might as well ditch the redundant uploads and just forward form the Backend group

However, the way files are being backed up at the moment is inscrutable to a human as only telegram file IDs are being uploaded. Furthermore, for some reason the extension is lost, so we lose even the mini thumbnail for the files. The group is as of now, opaque and only browseable within the app (photos on devicer/not on device

Feature suggestion

Browsability: Files should be uploaded twice: once uncompressed like it's being done right now, so no quality or format adjustments are being done. This ensures that EXIF metadata survives the upload, so far so good.The second time the file is uploaded it should be "compressed", telegram will do its thing and show an actual picture in the Backend group. This makes the group transparent as I can identify which file is which just my looking at the picture

Pictures should be uploaded alternating compresses then uncompressed for each file, this way the uncompressed file will be right below it's "thumbnail" image. The thumbnail image can be used directly in telegram, for forwarding to Roger conversations or channels

Searchability Simply adding a couple of #hashtags to each file uploaded as its caption automatically, would allow the user to quickly navigate and find related pictures. The obvious choice for grouping are 3: #year #month #date (could probably add #iso-week but it's something not many people use, )

This way just by using the native #hashtag features in telegram, we have a searchable index that will group photos in the Backend by year, month and date.

The tags would look like:

#2024 #Aug #07 #20240807 #W25

Conclusion

I believe that this feature would improve the value added by your application to the telegram ecosystem and will bring great quality of life improvements to the users.

Further exploration:

While setting tags automatically from using the upload date, it could be further refined to generate tags read from EXIF metadata in each file at upload time, which is in the end is what matters: when was the photo taken, not when it was uploaded, but that would require integrating a metadata solution such as exiftool to the software. Maybe a long term goal? We can live with upload date grouping but eventually EXIF metadata rules.

Thank you again for your software. I’ll try to find some time to contribute as I find this software very useful. Greetings from 🇲🇽

hlecuanda commented 3 months ago

This is a screenshot of the Backend Telegram Group Running the bot, and a "Mock" of what the implemented changes would look like.

Screenshot_20240806-203601 Screenshot_20240806-203620

beradeep commented 3 months ago

Thanks for the detailed input. Looks like novel idea! I'll look into it!

beradeep commented 3 months ago

Thank you again for your software. I’ll try to find some time to contribute as I find this software very useful. Greetings from 🇲🇽

Sure feel free to open a PR!