[SOLVED!] On an Android phone is there an open source method of compressing files?

3 years ago by LemmyKnowsBest to c/linux

I have to submit a document for employment and they want my passport but my passport photo is 5.49 MB and they say you can't upload anything more than 5 MB. How can I shrink that file on my android phone without paying some service?

lurch 30 points 3 years ago

5MB? What is this? Employment for ants?

path: 0 9232985, hotness: undefined, score: 30, children: 0
solrize 20 points 3 years ago

5+ MB sounds like a PNG or the like. Open in photo editor and save as jpg. That should fix it.

path: 0 9232679, hotness: undefined, score: 20, children: 5
LemmyKnowsBest 15 points 3 years ago

Thank you! I don't have exactly the option but you put me in the right direction and I figured it out. Thank you!! got it down to 4.79 MB

path: 0 9232679 9232934, hotness: undefined, score: 15, children: 4
lemmyreader 14 points 3 years ago

Dear OP, please edit the post title and insert [Solved] to prevent a 1000 more answers in the coming 5 years in this thread (and in the new comments time line), thank you :)

path: 0 9232679 9232934 9234489, hotness: undefined, score: 14, children: 1
LemmyKnowsBest 5 points 3 years ago

Do'h! ok done 😁

path: 0 9232679 9232934 9234489 9248026, hotness: undefined, score: 5, children: 0
MonkderDritte 5 points 3 years ago

Btw, media formats are not really compressible (e.g. zip, 7z, gz, etc.), because they are already compressed by specialized algorithms (png, jpg, avif, etc.).

path: 0 9232679 9232934 9262855, hotness: undefined, score: 5, children: 0
solrize 2 points 3 years ago

Png to jpg should be more like 5x compression but maybe something else was going on. Anyway it sounds like the immediate is handled.

path: 0 9232679 9232934 9236276, hotness: undefined, score: 2, children: 0
RichardoC 16 points 3 years ago

You're looking for something to export the image at a lower resolution (resize) rather than something to compress the image. Any open source gallery/image editing app should be able to do this.

One example would be "image toolbox" on FDroid. I've not used it but it seems to have the feature you need

path: 0 9232510, hotness: undefined, score: 16, children: 0
cheezits 12 points 3 years ago

I hear xz utils is pretty good

path: 0 9262744, hotness: undefined, score: 12, children: 1
bitwolf 1 point 2 years ago

Too soon lol

path: 0 9262744 9448887, hotness: undefined, score: 1, children: 0
juicy 9 points 3 years ago path: 0 9234529, hotness: undefined, score: 9, children: 0
lemmyreader 6 points 3 years ago

I guess you can install termux and in termux install imagemagick. Then use the mogrify tool from imagemagick to lower the image resolution. For example (Make sure to make a backup!) :

mogrify -geometry 800x600 photo.jpg

path: 0 9232581, hotness: undefined, score: 6, children: 1
Rustmilian 1 point 3 years ago
path: 0 9232581 9241862, hotness: undefined, score: 1, children: 0
art 4 points 3 years ago

Depending on your phone you might have an image resizer built into your photo gallery. Having said that, there's always imagemagick.

path: 0 9261211, hotness: undefined, score: 4, children: 0
trk 3 points 3 years ago

I've been using Image Shrink on Android for the better part of a decade. It works flawlessly for exactly this situation.

I set the resize options to maximum dimension of 1600px.

Then the workflow is share from any app (like the Gallery) to Image Shrink, it resizes the photo(s), then reopens the share prompt to share on to wherever you're trying to send them (like an email client).

You can also choose Image Shrink in the file picker to do it in reverse - select the files in the app you want, and they get resized on the way in.

path: 0 9259912, hotness: undefined, score: 3, children: 1
trk 2 points 3 years ago

Just realised I've probably bought that app at some point - no idea what it costs since Google doesn't show that information once you own it.

There's a free version which likely has done restrictions but probably still does exactly what you require:

https://play.google.com/...

path: 0 9259912 9259981, hotness: undefined, score: 2, children: 0
possiblylinux127 2 points 3 years ago path: 0 9234347, hotness: undefined, score: 2, children: 0
bionicjoey 2 points 3 years ago

Can you try cropping the photo? A few pixels around the outsides might make the difference since it's only 10% too big.

path: 0 9232887, hotness: undefined, score: 2, children: 0
person 2 points 3 years ago

Any photo editor will do. Just load it in and export as JPEG or smaller resolution.

On f-droid:

Pocket Paint is crashy for me, but it gets the job done.

Imagepipe has a bit clunky interface but just to load and export it works fine. Its primary advertised purpose is to remove metadata from photos, so not a bad thing to have on hand anyway.

path: 0 9232468, hotness: undefined, score: 2, children: 0
sic_semper_tyrannis 2 points 3 years ago
path: 0 9246329, hotness: undefined, score: 2, children: 2
LemmyKnowsBest 4 points 3 years ago

Use ImagePipe. It lowers the res and thus saves data (you can control how much) and it removes all metadata from that image too (which is the main purpose of the app)

Why did you delete this? It sounds like good advice, is it wrong?

path: 0 9246329 9248464, hotness: undefined, score: 4, children: 1
sic_semper_tyrannis 2 points 3 years ago

I realized after I commented that this was a Linux community, not Android. I'm glad you liked it though. Honestly I didn't read your whole post as I was tired

path: 0 9246329 9248464 9262069, hotness: undefined, score: 2, children: 0
rimugu 1 point 3 years ago

@LemmyKnowsBest
If zip is good enough, Amaze File manager can compress and extract from zip files. Its open source and available in f-droid. It may be available in google play store too.

path: 0 9232460, hotness: undefined, score: 1, children: 0
grogreen 1 point 3 years ago

Open the camera - select your photo - select edit (pencil ) - select 3 dots - select resize - choose smaller size

path: 0 9232592, hotness: undefined, score: 1, children: 0
dan 1 point 3 years ago
path: 0 9232488, hotness: undefined, score: 1, children: 1
rollingflower 3 points 3 years ago
  • Image toolbox
  • imagepipe
  • bunny media editor

All better alternatives than uploading your stuff to a proprietary server (as if that would matter when you have no idea whats running in the backend)

path: 0 9232488 9233780, hotness: undefined, score: 3, children: 0
linux
linux

@lemmy.ml

login for more options
68043
9437
5656

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpår-Etele Méder, licensed under CC BY 3.0

go to feed...