Issue 2814 in k9mail: Automatically resize image attachements

244 views
Skip to first unread message

k9m...@googlecode.com

unread,
Dec 28, 2010, 3:33:14 PM12/28/10
to k-9-noti...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Product-k9mail

New issue 2814 by tom.pilow: Automatically resize image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

This is a feature request:

It would be great if k9mail could automatically resize image attachements,
like Microsoft Outlook or Apple Mail does.

If I take a picture with the phone's camera in full resolution, I maybe
want to send it in a lower resolution and quality via mail to somebody.


k9m...@googlecode.com

unread,
Dec 28, 2010, 6:11:38 PM12/28/10
to k-9-noti...@googlegroups.com
Updates:
Labels: -Type-Defect -Priority-Medium Type-Wishlist Priority-Low

Comment #1 on issue 2814 by cketti: Automatically resize image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

(No comment was entered for this change.)

k9m...@googlecode.com

unread,
Mar 31, 2012, 2:35:26 PM3/31/12
to k-9-noti...@googlegroups.com

Comment #2 on issue 2814 by gerritsa...@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

I would also like to vote for this request. Currently, I always have to use
“reduce picture size” when sending pictures, because the default picture
size with the smartphone is about 700 KBs, even though the picture could be
reduced to 50-100 KB without much loss in quality.
But always having this step in between is really quite a nuisance. It would
be so much nicer if I could send a picture from the gallery or photo app to
K9 Mail, compose the mail and then click “reduce to 100 KB in size”.

k9m...@googlecode.com

unread,
Apr 17, 2012, 3:55:11 PM4/17/12
to k-9-noti...@googlegroups.com

Comment #3 on issue 2814 by jeremywi...@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

Ditto the above. It would be hugely useful. I can find no default
functionality that handles resizing in Android.

k9m...@googlecode.com

unread,
Aug 6, 2012, 5:14:15 AM8/6/12
to k-9-noti...@googlegroups.com

Comment #4 on issue 2814 by g.chr...@gmail.com: Automatically resize image
attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

I have implemented this feature and committed the code to a fork of k-9 on
Github. Not knowing what to do next, I just post this comment and wait for
some reaction.

Here is how the feature was implemented: when attaching an image (or
multiple images), a pop-up will prompt the user for a resize option:
original size (no resizing), 1280x1024, 1024x768, 800x600, 640x400.

The images are resized to fit inside the chosen size; aspect ratio is of
course maintained. Rotation is also applied if necessary so that the result
will look the same as the original in terms of orientation.

Actual resizing happens when the message is queued for sending, i.e. just
after hitting the send button. As this happens in a background task, the
user won't see the resizing going on in the user interface. It will just
delay the actual sending of the message (which you may see in the
notification bar).

In this version, I have left a progress dialog when attaching the image(s).
But since at this stage, no real resizing is happening, it's always fast
and thus barely useful. I might remove it in the final version.

A note about memory usage: there are different techniques to resize an
image. I have used the most straightforward one and the one yielding the
best quality: the original image is fully brought into memory, resized and
written back to a temporary file. The potential problem with this is that
it uses quite a lot of memory. In some circumstances it may result in an
OutOfMemory. But since I have not yet been able to see it in any of my
tests, I have not bothered with implementing a second technique for low
memory situations. Might be necessary though. Waiting for feedback before
spending the time.

I have tested this on three different devices so far: Samsung Galaxy Nexus
running Android 4.1.1, Samsung Galaxy Note running Android 4.0.4 and my old
HTC Hero with only 192 MB of RAM running Android 2.2. It's working
perfectly on all three.


k9m...@googlecode.com

unread,
Sep 13, 2012, 3:04:22 PM9/13/12
to k-9-noti...@googlegroups.com

Comment #5 on issue 2814 by yair.kra...@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

+1 for this feature. Where can the fork be found?

k9m...@googlecode.com

unread,
Sep 14, 2012, 6:59:03 AM9/14/12
to k-9-noti...@googlegroups.com

Comment #6 on issue 2814 by g.chr...@gmail.com: Automatically resize image
attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

I had a chat with the developers yesterday and we agreed there is still
work to be done before it can be merged into the main fork of K-9. So I
will continue to work on this.

You can find the fork here: https://github.com/christianknecht/k-9
But please note this is in no way a official/stable version and thus not
recommended for production use.

k9m...@googlecode.com

unread,
Nov 9, 2012, 3:47:53 PM11/9/12
to k-9-noti...@googlegroups.com

Comment #7 on issue 2814 by rdzid...@gmail.com: Automatically resize image
attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

the feature is totally cool but am worried about memory consumption..
currently K9 needs too much of it even without in-memory picture
processing. Than again, it should not consume more memory than just
displaying the picture?

k9m...@googlecode.com

unread,
Apr 11, 2013, 1:09:21 PM4/11/13
to k-9-noti...@googlegroups.com

Comment #8 on issue 2814 by icq18966...@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

My phone has this feature of picture resize in its default imap android
client. Samsung N7100 android 4.1.2

When I try to send an image from gallery to mail, it shows a pop-up window
with 4 options:
- original size
- big 70%
- medium 30%
- small 10%
This works OK for me, very useful; it could be implemented in k9 in a
similar way.

Another thing that could be implemented is a "checkbox" in this pop-up to
choose between "keep original info", "clear all info". (*)

(*) info means all information that comes with the jpeg file, as GPS
location, weather info, camera aperture/speed, phone model... all the
things that phone attach to it. It is a good option to clear this when
sending mail to some "untrusted" people.

Thanks in advance.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

k9m...@googlecode.com

unread,
Jul 18, 2013, 4:39:32 AM7/18/13
to k-9-noti...@googlegroups.com

Comment #9 on issue 2814 by m...@guetlbauer.com: Automatically resize image
attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

Any plan to implement this feature? It's really important!

Michael

k9m...@googlecode.com

unread,
Nov 28, 2013, 8:33:48 PM11/28/13
to k-9-noti...@googlegroups.com

Comment #10 on issue 2814 by c.auder...@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

I'd love to have it too. Especially now that the Reduce Picture Size app
seems not to be working with k9 anymore.

k9m...@googlecode.com

unread,
Apr 23, 2014, 4:22:12 PM4/23/14
to k-9-noti...@googlegroups.com

Comment #11 on issue 2814 by dmilashi...@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

vote for this feature

k9m...@googlecode.com

unread,
Apr 24, 2014, 1:25:19 PM4/24/14
to k-9-noti...@googlegroups.com

Comment #12 on issue 2814 by ton...@gmail.com: Automatically resize image
attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

This is my vote

k9m...@googlecode.com

unread,
May 18, 2014, 11:42:20 AM5/18/14
to k-9-noti...@googlegroups.com

Comment #13 on issue 2814 by AngloFre...@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

This really would be most helpful; mabe as well as selecting file
percentage e could also be shown the resultant file size.\

k9m...@googlecode.com

unread,
Jun 25, 2014, 8:13:57 AM6/25/14
to k-9-noti...@googlegroups.com

Comment #14 on issue 2814 by nikolay....@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

Please, implement that.

k9m...@googlecode.com

unread,
Jul 10, 2014, 1:17:40 PM7/10/14
to k-9-noti...@googlegroups.com

Comment #15 on issue 2814 by who.b00...@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

Any update?

k9m...@googlecode.com

unread,
Jul 25, 2014, 4:46:50 PM7/25/14
to k-9-noti...@googlegroups.com

Comment #16 on issue 2814 by NathanAg...@gmail.com: Automatically resize
image attachements
http://code.google.com/p/k9mail/issues/detail?id=2814

Still nothing?? i have the k-9 app from the app store and it doesn't seem
to be included

k9m...@googlecode.com

unread,
Aug 24, 2015, 4:51:28 AM8/24/15
to k-9-noti...@googlegroups.com

Comment #17 on issue 2814 by lucian.a...@gmail.com: Automatically resize
image attachements
https://code.google.com/p/k9mail/issues/detail?id=2814

1 vote from me also. I need this feature so much.
Reply all
Reply to author
Forward
0 new messages