Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Lower compression for sent pictures

Open ghost opened this issue 12 years ago • 171 comments

It would be nice if pictures which are sent over the data channel aren't so highly compressed.

ghost avatar Feb 25 '14 11:02 ghost

Why? Compressing/Decompressing doesnt use that much CPU as it would make any significant difference.

m0jo avatar Feb 25 '14 16:02 m0jo

Are we talking about lossy compression?

monreal avatar Feb 25 '14 19:02 monreal

Here's a photo I took earlier and this is what it looked like after sending it via TextSecure. I only realised something was up when the recipient asked me where the event was - the poster isn't even readable :(

zofrex avatar Feb 25 '14 20:02 zofrex

I'm having this same issue. A friend sent an image with small text in it, readable on the original image, but completely obscured after he sent it to me.

cgarrett avatar Feb 25 '14 23:02 cgarrett

This has been an issue for quite a while for me. I use TextSecure for SMS, but have to disable it and use the stock app for MMS due to the heavy compression.

I sent a 1.3MB image to a friend, it gets compressed to 70kB when he receives it, unencrypted, encrypted, sent, received... all gets compressed

Here is an album with screenshots of closeups, original file, and version sent/received from textsecure

wx0b avatar Feb 25 '14 23:02 wx0b

I meant the compression of the picture itself, not the client server compression (didn't know that tectsecure also compresses the transfer). As the others explained the pictures are pixelated once sent/received. People are used to get compressed pictures (WhatsApp), but the picture should be compressed in a moderate way.

ghost avatar Feb 26 '14 11:02 ghost

+1 for higher resolution images, although in my opinion it's not a high priority feature

lapseofreason avatar Feb 26 '14 22:02 lapseofreason

currently experiencing the same problem, making sharing of text pages not enjoyable

phime42 avatar Feb 27 '14 15:02 phime42

+1

hunleyd avatar Feb 27 '14 20:02 hunleyd

Yeah, TextSecure does seem to do some excessive resizing/compression before sending. This is especially not required in the push case.

mcginty avatar Mar 05 '14 02:03 mcginty

So @moxie0 what would the maximum size of pictures be that you would "allow" on the server? After all, you are currently providing the storage space for them...

tinloaf avatar Mar 12 '14 14:03 tinloaf

+1 on this as well for me. it's actually much worse than I thought after examining a photo last night. Wasn't there discussion on raising the limit of an attachment size if sent over push/data?

jeremymasters avatar Mar 12 '14 15:03 jeremymasters

There is a 'media' branch here that handles this correctly, we just need a few things from @mcginty on it.

moxie0 avatar Mar 12 '14 16:03 moxie0

@shmartens : other messengers like WhatsApp also reduce the size of the picture. This actually is a good feature because mobile data plans are sometimes very limited. The problem with TextSecure (compared to WhatsApp) is that:

  1. The image resolution is even lower. It seems to be just 360x480, which is very low for today's usual 4"-5" smartphone displays.
  2. The used algorithm for resizing seems to be low end

thenktor avatar Apr 09 '14 16:04 thenktor

What about an option to set the picture size, like Threema do this? Not everyone has a very limited data plan (5GB per month).

KayuHD avatar Apr 09 '14 21:04 KayuHD

It's not unreasonable to resize the image, even though I have a large plan there's very little value in sending my photos at full resolution - it takes a lot longer as well as eating data, and in most cases the image will only be viewed on a phone screen so preserving the original res doesn't add anything.

The resizing algorithm does seem to be a bit worse than WhatsApp - their images are much higher quality but not much larger in bytes. Here's the results from my very unscientific testing with a sample size of one:

Service Resolution File size Subjective quality
Original 2448 x 3264 2 253 kB 5/5
TextSecure 360 x 480 88 kB 1/5
WhatsApp 612 x 816 100 kB 3/5
MMS 435 x 580 145 kB 1/5

For what my $0.02 are worth, I don't think an option to change the size is that useful - as long as it doesn't use huge amounts of data and doesn't look terrible, I don't really care and don't think most people would.

zofrex avatar Apr 09 '14 22:04 zofrex

I prefer that my images are not manipulated. The stock MMS app does not resize my pics (that I am aware of.) Why would I want textsecure to do that? If I want them resized, I will resize them before sending them.

wx0b avatar Apr 09 '14 22:04 wx0b

@zofrex With size I mean the resolution, because the current is too low. All pictures with text in it are waste. When the compression is good enough without artifacts, should it be all right for me.

KayuHD avatar Apr 09 '14 22:04 KayuHD

@wx0b MMS apps typically compress images very harshly (even my feature phones did this), I've updated my results with the stock Messaging app to my table.

zofrex avatar Apr 09 '14 22:04 zofrex

@wx0b Manual resizing of pictures before sending them is the most uncomfortable thing I can imagine in a mobile messenger app. It needs at least twice the time in a point, shoot and send situation. Also common users even have no idea how to do it. I'd rather add another option "Send picture (uncompressed)" to the attachment menu. But also on the receiver side I would not want my app to autmatically download uncompressed images and waste my limited data plan.

@KayuHD Currently pictures with text in it are not the only problem. A usual wide anglöe picture with some details looks horrible, too. IMHO a resolution of 1024x768 with a better resizing algorithm would be a good compromise :)

thenktor avatar Apr 10 '14 07:04 thenktor