octoshrimpy 2bd62f2f94 perf(mms): decode an image once per attachment instead of per attempt
Addresses the review feedback on #826.

Compression searches for a size that fits under the carrier limit, so it encodes
the same image many times: a binary search over dimensions, then a quality ladder
from 90 down to 40 if nothing fit. Every one of those attempts went through
ImageUtils.getScaledImage, which re-opened the source URI and re-decoded it from
scratch. Decoding is the expensive part and it was the only part being repeated
unnecessarily; a large photo could be decoded a dozen or more times to send once.

ScaledImageEncoder decodes the source a single time, sampled down to no smaller
than the largest width the search will ask for, and re-encodes that bitmap from
memory for each attempt. The search itself is unchanged.

The decode is guarded: with no carrier cap the target size is the original image,
which on a modern camera sensor is large enough to matter, so an OutOfMemoryError
returns null and the caller falls back to Glide, which streams instead of holding
the whole bitmap.

Also fixes three edge cases raised in review:

- A bounds decode that fails leaves outWidth/outHeight at zero, making the aspect
  ratio 0/0 and every derived dimension garbage. Detect it and fall back rather
  than divide by it.

- searchHi was floored at 100, which raised it above the original width, and above
  the carrier maximum when that was under 100. Both upscale the image and inflate
  the payload. The floor is now 1 and the search starts at 1 rather than 100.

- The last-resort fallback hard-coded a width of 100, upscaling anything narrower.
  It is now bounded by searchHi, so it can only shrink.
2026-08-01 17:15:23 -04:00
2026-01-11 19:36:52 -08:00
2023-11-14 11:58:17 -07:00
2025-06-28 19:25:24 +00:00
2025-06-28 19:25:24 +00:00
2025-07-18 19:11:29 -07:00
2017-05-25 22:20:04 -04:00
2017-05-25 22:20:04 -04:00
2017-05-24 21:33:47 -04:00
2025-03-01 00:03:35 -05:00
2026-01-11 20:35:33 -05:00
2019-12-29 18:09:56 -05:00

octoshrimpy/QUIK

QUIK

Manual Release Translation status

QUIK is an open source replacement to the stock messaging app on Android. It is a continuation of QKSMS.

Features

  • Scheduled messages
  • Message backup
  • Speech-to-text and text-to-speech integrated within the app
  • Message blocking and archiving
  • Voice messages
  • Attachments of any type of file
  • Message sorting
  • Message pinning
  • Delayed sending
  • Quick reply from notifications
  • Swipe actions
  • Emoji reaction handling
  • and much, much more

Download

Grab QUIK from the official github releases page, or keep up with updates with the following:

Get it on F-Droid Get it on Obtainium Download from GitHub releases

Matrix Chat

You can chat with the community over at #quik-sms:matrix.org

Reporting bugs

A great bug report contains a description of the problem and steps to reproduce the problem. We need to know what we're looking for and where to look for it.

When reporting a bug, please make sure to provide the following information:

  • Steps to reproduce the issue
  • QUIK version
  • Device / OS information

Contributing

Contributions are very welcome! Please see the contributing guidelines for details.

Translations

If you'd like to add translations to QUIK, please join the project on Weblate! Translations that are committed directly to source files will not be accepted. For more information see the translation guidelines.

Translation status

Thank you

A special thank you to Jake (@klinker41) and Luke Klinker (@klinker24) for their work on android-smsmms, which has been an unspeakably large help in implementing MMS into QUIK.

A giant thank you to Moez moezbhatti for creating and maintaining QKSMS, of which QUIK would not exist without.

Contact

QUIK is developed and maintained by Marcos Jones.


Star History

Star History Chart

Donate using Ko-Fi Donate using Patreon

License

QUIK is released under the The GNU General Public License v3.0 (GPLv3), which can be found in the LICENSE file in the root of this project.

S
Description
No description provided
Readme GPL-3.0 18 MiB
2026-10-24 13:01:48 +02:00
Languages
Kotlin 50%
Java 49.3%
Python 0.4%
CSS 0.2%