Mamiglia / Reddit-Wallpaper

Tool to download and automatically set a random wallpaper from reddit
MIT License
43 stars 7 forks source link

Add title to image #8

Open Chizi123 opened 3 years ago

Chizi123 commented 3 years ago

It would be nice to be able to add the title of the image somewhere on the image. Choosing where the title would go could be good too.

b16r05 commented 3 years ago

I second this. Program works well and images of /r/earthporn, for example, are great but you want to know what you are looking at.

There could be an option for example to show name of the file on the image itself (somewhere)...

Example filenames:

Letchworth_State_Park_NYoc_4032x_3024.png Napali_Coast_Kauai_USA_OC3024x4032.png

Psuedocode

not (string) "OC[resolution].png" at the end && replace underscore with spaces

example output on image:

Letchworth State Park NY Napali Coast Kauai USA

Thanks!

Mamiglia commented 2 years ago

This is a really good idea! But I should manipulate the image to do that, and decide where to put the text, how big, what color ecc... It might be a problem, it might cover things What if instead I put it somewhere in the Tray menu? That would be easy to access and also tell you what you're looking at!

Chizi123 commented 2 years ago

It could be good on the tray menu, but I tend to highlight the desktop to try and see the image. Adding it to the image shouldn't be too hard, at least with ImageMagick, and there could be a dialogue to decide colour and a drop down for placement.

For what its worth, I have a bash script which does it with ImageMagick, the title addition is at the end. I find it doesn't tend to cause too many problems in visibility.

Mamiglia commented 2 years ago

I will consider what you propose, in any case with the last commit I added the title of the current wallpaper in the system tray, so it will be included in the next release

b16r05 commented 2 years ago

Discussion on stackoverflow mention ImageMagick program.

Discussion here has a script as well (for inspiration :) https://legacy.imagemagick.org/discourse-server/viewtopic.php?t=28886

This discussion on stackoverflow shows some pictures with filenames embedded: https://stackoverflow.com/questions/4106200/overlaying-an-images-filename-using-imagemagick-or-similar just to give you some ideas.

I think once you get the code working to have the file name on there; then you can offer users the option to check/uncheck the option if checked; then set color, font desired

I personally would have /r/earthporn pics pulled into a directory; then, run a script to permanently embed location... that way, I could run the folder as screensaver on my android TV and I know what I am looking at : )