wallpaper changer

Forum to discuss everything related to the current development build of Automagic.

Moderator: Martin

Locked
Ankit
Posts: 143
Joined: 11 Nov 2013 17:27

wallpaper changer

Post by Ankit » 01 May 2014 10:42

Hi
I have made an flow which changes wallpaper periodically but with little modification but i am facing some problem.

Flow gives error whenever executed..
I thing i have done some mistake so please help!!

http://automagic4android.com/flow.php?i ... 3ee9709bda

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

Re: wallpaper changer

Post by Martin » 02 May 2014 08:22

Hi,

It seems like you are trying to load folder /mnt/extSdCard/Images/Wallpapers with action Init Variable Image File. This does not work, you have to specify an image file, for example /mnt/extSdCard/Images/Wallpapers/Image1.jpg or with an expression like {getRandomElement(files)} to load a random image.
I don't understand what you are trying to achieve with the flow. What's the desired outcome?

Regards,
Martin

Ankit
Posts: 143
Joined: 11 Nov 2013 17:27

Re: wallpaper changer

Post by Ankit » 02 May 2014 11:03

Hi martin
I am using touchwiz launcher and whenever i use wallpaper changer (posted by you in catalogue) it zooms the wallpaper and dont fit it in screen.

So i was trying to set the width and height of wallpaper by using the action modify image..

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

Re: wallpaper changer

Post by Martin » 03 May 2014 14:29

The wallpaper action can only work with a file, so you have to load a random image, scale it, save the scaled image to a file and then use this new image as the wallpaper.

Something like this should work:
-trigger ...
-action Init Variable File List: files to /mnt/extSdCard/Images/Wallpapers/*
-action Init Variable Image File: {getRandomElement(files)} to image_data
-action Modify Image: image_data Scale...
-action Save Variable in Image File: /mnt/extSdCard/Images/scaled_wallpaper.jpg
-action Set Wallpaper to /mnt/extSdCard/Images/scaled_wallpaper.jpg

The launchers often scale the image proportionally to ensure that the wallpaper fills the entire screen height so the flow would not have any effect when you also scale the image proportionally.

Ankit
Posts: 143
Joined: 11 Nov 2013 17:27

Re: wallpaper changer

Post by Ankit » 04 May 2014 12:56

Hi martin
Thanx for the flow.

juandeargentina
Posts: 4
Joined: 07 May 2014 18:18

Re: wallpaper changer

Post by juandeargentina » 23 Jun 2014 00:27

Martin wrote:The wallpaper action can only work with a file, so you have to load a random image, scale it, save the scaled image to a file and then use this new image as the wallpaper.

Something like this should work:
-trigger ...
-action Init Variable File List: files to /mnt/extSdCard/Images/Wallpapers/*
-action Init Variable Image File: {getRandomElement(files)} to image_data
-action Modify Image: image_data Scale...
-action Save Variable in Image File: /mnt/extSdCard/Images/scaled_wallpaper.jpg
-action Set Wallpaper to /mnt/extSdCard/Images/scaled_wallpaper.jpg

The launchers often scale the image proportionally to ensure that the wallpaper fills the entire screen height so the flow would not have any effect when you also scale the image proportionally.
Hi, thanks for the flow. It works great but it wont scale most of my images correctly. I have touchwiz and Samsung S3. Any idea of how can I resolve that?

Akt
Posts: 133
Joined: 25 May 2014 08:57

Re: wallpaper changer

Post by Akt » 23 Jun 2014 02:28

Ya it dont scale the image.
This is the problem of touchwiz launcher..

juandeargentina
Posts: 4
Joined: 07 May 2014 18:18

Re: wallpaper changer

Post by juandeargentina » 23 Jun 2014 15:10

Ok....options to touchwiz?

Locked