Skip to content
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

Add title to image #8

Open
Chizi123 opened this issue Sep 16, 2021 · 5 comments
Open

Add title to image #8

Chizi123 opened this issue Sep 16, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@Chizi123
Copy link

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.

@ghost
Copy link

ghost commented Sep 17, 2021

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
Copy link
Owner

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!

@Mamiglia Mamiglia added the enhancement New feature or request label Sep 20, 2021
@Chizi123
Copy link
Author

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
Copy link
Owner

Mamiglia commented Sep 20, 2021

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

@ghost
Copy link

ghost commented Sep 20, 2021

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 : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants