What might cause a partially loaded JPEG in a UIIm

2019-06-03 17:33发布

问题:

We are getting reports in the field, on both iOS and Android, of partially loaded profile images in our mobile app.

Here is what it looks like (note that I have gaussian blurred part of the image to protect the privacy of our members, but the grey is what is actually rendered):

AFAIK there is not a concept of loading "Progressive JPEGS" in UIImageView, so I am at a loss about how this image could even have been rendered at all. This code has not been modified in at least a year. All images are hosted on S3, and have been for 2 years.

Is it somehow possible that carriers are truncating images now if a device hits a certain bandwidth limit?

-- Edit --

I can confirm we were able to repro this behavior on an AT&T network. Is it possible that AT&T is munging images in this fashion when a user goes over his data cap or something?

回答1:

I had this same issue crop up when I switched from https to http images. Needless to say... I switched back to https based images.