1. Are you ready for the Galaxy S20? Here is everything we know so far!

How do I image resize?

Discussion in 'Android Apps & Games' started by degarb, Jul 29, 2017.

  1. degarb

    degarb Newbie
    Thread Starter

    I cannot make heads nor tails out of tasker document for image load or image resize. No examples? Examples, are more important than definitions.

    Anyway, how do I resize file.jpg then resave it?

    googling for an hour brings up nothing.

    Anyway to convert to webp?
     


  2. I admit to being confused by the question.

    Are you wanting to access a .jpg file, resize it maintain aspect ration, and then save it? That will require an image editor.

    Are you trying to include a .jpg in a scene, resize it in the user interface, and then save the image? That can be done in Tasker..

    See ... https://androidforums.com/threads/how-do-i-image-resize.1170100/#post-7586312

    ... Thom
     
    #2 Thom, Jul 30, 2017
    Last edited: Aug 2, 2017
  3. degarb

    degarb Newbie
    Thread Starter

    No, why would I be interested in scene? I am trying to camera take a photo, then get that photo down to a viewable 20 K image and save it (dropbox/ftp/drive upload every 10 minutes), when the lowest possible picture is .9 megabyte.

    I don't care about retaining image ratio.

    I don't understand image editor suggestion, since automation is what tasker is about. I won't be near the phone to operate any editor. Miles away.

    So, I don't understand resize, still. Nor load (perhaps to something called store, which I assume is memory) Yes, sd to sd resize. Nothing regarding ui or scenes. Just simple 2.5 minute interval camera at a good quality 20k image file (all playstore apps are video, wrong interval, wrong quality picts). I will cloud sync it with foldersync which works.
     
  4. #4 Thom, Jul 30, 2017
    Last edited: Aug 2, 2017
  5. degarb

    degarb Newbie
    Thread Starter

    No Tasker cannot automate anything in the Playstore until it can send keys and send mouse clicks to pixels and other app dialogs. Android 7 now disallows any app to even see if another app is running, which broke the ability to evaluate new apps over weeks to see how they grab cpu, battery, ram, and lockup.

    I could envision some command line ImageMagick for Android and having Tasker launch a script to move and delete original jpg. ImageMagick is linux, not android, as far as I know. Likely android disabled the shell scripts, too.

    I am still floored that I spent 5 hours googling to 4 am, found dozens of windows xp solutions. But not on e android solution.
     
  6. degarb

    degarb Newbie
    Thread Starter

    Also floored at the poor Tasker documentation, lack of any example, or Web info on image load and image convert, indigenous in Tasker
     
  7. degarb

    degarb Newbie
    Thread Starter

    I am convinced, from 6 years, that android cannot do phone nor computer os, very well.

    Android finally got alerts so, so (still no caller ID over Bluetooth headset, broken in earlier android version). Yet, reliable battery life marches backwards as phones glue in their batteries for earlier phone obsolescence. And phone alacrity is yet spotty even on a 3ghz octa core, where lagging makes phone use still sticky at times.

    This is one thread with os short coming. At heart, the OS battle seems to be a battle for the use of one's own device by the device buyer-fighting against Google, the near sighted, unimaginative android device community, the cell providers, and dumber consumers that will take and allow any backward development if it is packaged as an upgrade.
     
  8. degarb

    degarb Newbie
    Thread Starter

    https://github.com/paulasiimwe/Android-ImageMagick

    This is promising. But where do I start? I work for living. I don't have 2 years to learn java to get this to compile to apk. It will be hard enough to figure out the bassakwards android command line, if that is even possible. Teaching the command line, making it more user friendly, adding get pixel color and mouse clicks, should be top shelf priority with Android, just as Tasker takes phone to whole new level, this would take it higher
     
  9. You are viewing some of the situation.

    Tasker was developed by and is maintained by a single individual in Germany. He has and continues to provide an impressive array of "macros" in Tasker for many Android device activities. He does not work for Google.

    Some people have chosen to root their device so they can control it directly ignoring every roadblock Google established. This route is highly technical and from what I have seen there is a high likely hood that if you are root-ed you will get nailed due to something you overlook. Root-ing almost always violates your warranty and you should be prepared to replace the device at your own expense when it is nailed.

    With regards to Android apps ... my recommendation is to spend some time researching apps in Play Store. It is highly likely that an app already exists that meets 85% of your requirements and costs a buck or two. You then get to decide what you want to do about the missing 15%.

    As for Tasker ... it has a steep learning curve. It was a year before I felt comfortable with it. Some people prefer MacroDroid that has a shorter learning curve and less capability than Tasker.

    See ... https://androidforums.com/threads/how-do-i-image-resize.1170100/#post-7586312

    ... Thom
     
    #9 Thom, Jul 30, 2017
    Last edited: Aug 2, 2017
    mikedt likes this.
  10. mikedt

    mikedt 你好

    This all sounds like some specialist and vertical application that you want to do. Rather than trying to DIY and getting frustrated, especially if you don't have the technical skills required, maybe worth approaching a professional development company or organization. What sort of budget does your project have? There's always Kickstarter of course.
     
    Dannydet and Thom like this.
  11. I assume the OP is trying to resize and save an image using Tasker. The following does that.
    • The file names would have to be manipulated.
    • It maintains the aspect ratio if you only specify a height or width.
    • Resolution can apprenbtly be controled with the Quality parameter of the Save action.

    Dev3 (18)
    A1: Load Image [ Source:content://com.android.providers.media.documents/document/image%3A18827 Max Width Or Height:Unset Respect EXIF Orientation:Off ]
    A2: Resize Image [ Width:100 Height:0 ]
    A3: Save Image [ File:2017.08.01.20.49.jpg Image Quality:85 Delete From Memory After:On ]

    ... Thom
     
    Dannydet and mikedt like this.
  12. zuben el genub

    zuben el genub Extreme Android User

    If OP still has trouble, Image Shrink in Play store works well. I've used it to trim photos for MMS and other posts for years. It did have a free trial version. I liked it so well, I bought it.
     
  13. Experimentation with what I posted is needed.

    Tasker is not taking the photo ... it already exists.

    I selected it in
    Load image
    by clicking on the icon in
    Source
    and selecting
    Local Media
    and then selecting the image.

    You can pick some photo on your device to work this example on.

    Outside of Tasker you need to take the photo and deliver it to this location run the example and vary the address where the revised image is being saved.

    In this example the loaded image here was from the Camera folder. It was 2.63M and the saved image was 3.41K. Both were 72dpi.

    ... Thom
     
  14. Try what I posted and then experiment with incremental changes.

    If there are questions ... ask them in this thread. Tasker is not for everyone.

    The following shows writing the output in two different formats simply by changing the file extension ... gif and jpg.

    Dev7 (97)
    A1: Load Image [ Source:content://com.android.providers.media.documents/document/image%3A17342 Max Width Or Height:Unset Respect EXIF Orientation:Off ]
    A2: Resize Image [ Width:300 Height:0 ]
    A3: Save Image [ File:dev7.image.gif Image Quality:85 Delete From Memory After:Off ]
    A4: Save Image [ File:dev7.image.jpg Image Quality:85 Delete From Memory After:On ]

    ... Thom
     

Tasker

Tasker Forum

net.dinglisch.android.taskerm

⚙No repetitive tasks for you, let your Android device handle it!⚙
Total Automation, From Settings to SMS. Here are only some
of the things you could do with Tasker. Its real power is the flexibility to combine contexts and tasks however you wish: https://tasker.joaoapps.com/exampleuses.htmlAutomations
Make your phone a true smart
phone! Why remember to change the volume every day when you leave home when your phone can do it for you? Automate stuff based on the app you're in
, the time of day
, your location
, your Wi-Fi network
, Received SMS or Calls
, the currently playing song
and many other (130+) states and events! Check out how easy it is to create an automation: https://www.youtube.com/watch?v=s6EAbLW5WSkActions
350+ actions allow you to truly customize your phone like never before! Send SMS, create notifications, change almost any system setting like Wifi Tether, Dark Mode, Always On Display, change any volume, control Do Not Disturb, open apps, file manipulation, control music playback, get your location... you get the idea. If you can think of it, Tasker can probably do it for you! Note: root is NOT (I repeat NOT) required for majority of the functions.
However, a few of the actions (like the Airplane Mode action and the Mobile Data action on some devices) require root. Regarding those few actions that do require root, this is because of Android security policies that developers cannot work around. ☑ Other Triggers
Manually trigger your actions via launcher shortcuts, quick setting tiles, widgets, long-pressing volume buttons, media buttons (like the ones on your BT headsets or headphones), Bixby button, Navigation Bar, Notificaitons and more! ☑ Join - Remote Tasker
Adding Join (https://play.google.com/store/apps/details?id=com.joaomgcd.join) to the mix will even allow you to trigger tasks from another Android device or PC! ☑ Scenes
Design your own UI and use it to display any info you want or trigger any task! ☑ App Creation
Create your own standalone apps to share or sell with the Tasker App Factory (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory)! ☑ Developer Friendly
A lot of 3rd party developers already allow you to perform actions in their apps and listen to their events/states through Tasker! Check out a list of plugins https://tasker.joaoapps.com/pluginlist.html. You can also call most of the Web APIs from Tasker with the powerful HTTP Auth and HTTP Request actions! Check out an example https://youtu.be/yAt2D1XmgUI. ☑ 7 day trial - one time payment to unlock
Get it here: https://tasker.joaoapps.com/download.htmlUseful Links
Starter Guides: https://tasker.joaoapps.com/guides.html Pre-made projects: https://forum.joaoapps.com/index.php?resources/ Official Support Forumhttps://groups.google.com/forum/#!forum/tasker Community full of people willing to help: https://www.reddit.com/r/tasker/ It's not possible to fix problems reported via Play Store Comments so please use the "Report Issue To Developer" option in the app > Menu to do so. Note
: Tasker uses the BIND_DEVICE_ADMIN permission in order to provide the System Lock functionality

READ MORE
February 15, 2020
Last Updated
4.4
Rating
1M+
Installs
Loading...

Share This Page

Loading...