Images watermark

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Images watermark

Post by bogdyro » 25 Jul 2016 06:25

Hello. I know it's a longshot,but could it be possible to stamp images with the contents of variables? example usage would be to get weather info hourly and stamp an image and select it as wallpaper. Not needing Widgets or live wallpapers this way, to save memory.
Anyone know of any plugin that could do this?
thank you

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Images watermark

Post by Bushmills » 25 Jul 2016 07:04

I'd probably delegate watermarking to a remote machine, by sending the watermark text, then download the generated image. Possibly using a CGI script, invoking imagemagick, on a VPN'ed Linux host, sending text by http GET.
But I'd be more likely to write text to an accordingly set up Automagic widget, or launcher item (using Lightning Launcher, there are many ways to control desktop items, including letting them display text, semi-transparent, and dynamically changing, without any widget overhead).
There's a series of posts in the "General" section of the forum, showing how Automagic and Lightning Launcher cooperate.
On a side note, I do something similar on a desktop machine: event information is rendered as text on a screen size black picture, used as wallpaper. Such information includes incoming email, so it also works like a kind of biff. What I use for this purpose is a system called "serafena" (on github), which, again, resorts to imagemagick for rendering. My mobile devices also talk "serafena" (https://github.com/Bushmills/serafena)

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Images watermark

Post by MURTUMA » 25 Jul 2016 08:39

I won't go betting my head over this, but I think that it's more resource friendly to use widget. If the use case is the same, the widget could be updated only rarely and generally querying only weather requires less data over network than downloading pictures. Nevertheless, this would be interesting approach to do things.

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Images watermark

Post by Bushmills » 25 Jul 2016 08:44

(Mostly) black background picture with a few words or lines of text plotted into compresses well.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Images watermark

Post by MURTUMA » 25 Jul 2016 09:02

That is true, but in more complex or "noisy" image the file size increases exponentially.

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Images watermark

Post by Bushmills » 25 Jul 2016 09:13

Those tend to be rather unsuited for watermarks, lest the rentered text ought to remain legible.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Images watermark

Post by MURTUMA » 25 Jul 2016 11:12

That depends entirely how the text is rendered. While in the most practical and usable case you are entirely right, it is still a valid point to take into consideration. Not everyone prefers a raw practicality over a little better visuals, like me for example. ;)

Lets keep further offtopic out of here, shall we?!

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Images watermark

Post by bogdyro » 25 Jul 2016 12:05

well,i wasn't thinking black background and white text kind of pictures so,Aldo interesting, the idea of uploading and downloading a 3MB image each hour isn't practical. Since automagic can already do simple image transformations I'm thinking that it isn't too hard to implement. I think I'm gonna go with the widget option or another app altogether like klwp. waiting on a response from Martin though: )

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Images watermark

Post by Martin » 26 Jul 2016 12:17

Using widgets is probably the only easy way right now.
There's an item on my todo list to save a widget to an image which would help in this case. It should be quite simple to add this feature so I'll try to add it in 1.32.
I have another item on the todo list to extend Modify Image to combine/blend two images which would also help. Not sure if I'll find the time to add this in 1.32 since I'm currently preparing Automagic to support Android N.

Locked