Broken/incomplete JPEGs from phoneThumbnail field

Albert Vaca albertvaka at gmail.com
Tue Nov 7 14:20:30 UTC 2017


I don't follow the problem: Are they also broken when received with KDE
Connect, or only when receiving them using your implementation? Is the
issue found when creating the image, or when reading it afterwards?

On Sat, Nov 4, 2017 at 4:16 AM, Andy Holmes <andrew.g.r.holmes at gmail.com>
wrote:

> Hi,
>
> I'm writing a small program to interact with the KDE Connect android
> app in GLib/Gtk and I'm encountering problems with the base64
> phoneThumbnails being transmitted with telephony events.
>
> I'm not at all familiar with QPixmap but I assume it's comparable to
> GdkPixbuf, so doubt this is the problem. I've used the utility
> jpeginfo to confirm the image is broken and Eye of Gnome to confirm
> that image can be opened (and I'm decoding the data correctly) but is
> corrupted. I'll attach the corrupted JPEG and below is the
> jpeginfo/GdkPixbuf output:
>
> jpeginfo:
>
> test.jpg   96 x 96   24bit JFIF  Normal Huffman    4191  Premature end
> of JPEG file  [WARNING]
>
> GdkPixbuf:
>
> GdkPixbuf.PixbufError: Error interpreting JPEG image file (Application
> transferred too few scanlines)
>
> I can also confirm that libfolks is obtaining the same avatars
> correctly, so I don't believe these images are broken at the source.
> Could anyone advise on how I might try and track these errors down?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20171107/4eede14c/attachment.html>


More information about the KDEConnect mailing list