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
wallpaper changer
Moderator: Martin
Re: wallpaper changer
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
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
Re: wallpaper changer
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..
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..
Re: wallpaper changer
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.
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.
-
- Posts: 4
- Joined: 07 May 2014 18:18
Re: wallpaper changer
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?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.
Re: wallpaper changer
Ya it dont scale the image.
This is the problem of touchwiz launcher..
This is the problem of touchwiz launcher..
-
- Posts: 4
- Joined: 07 May 2014 18:18
Re: wallpaper changer
Ok....options to touchwiz?