• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How do I image resize?

degarb

Newbie
Mar 22, 2013
34
4
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?
 
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
 
Last edited:
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0
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
 
Last edited:
  • Like
Reactions: mikedt
Upvote 0
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

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.
 
  • Like
Reactions: Dannydet and Thom
Upvote 0
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
 
  • Like
Reactions: Dannydet and mikedt
Upvote 0
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

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.
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones