<div dir="ltr">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?</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 4, 2017 at 4:16 AM, Andy Holmes <span dir="ltr"><<a href="mailto:andrew.g.r.holmes@gmail.com" target="_blank">andrew.g.r.holmes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm writing a small program to interact with the KDE Connect android<br>
app in GLib/Gtk and I'm encountering problems with the base64<br>
phoneThumbnails being transmitted with telephony events.<br>
<br>
I'm not at all familiar with QPixmap but I assume it's comparable to<br>
GdkPixbuf, so doubt this is the problem. I've used the utility<br>
jpeginfo to confirm the image is broken and Eye of Gnome to confirm<br>
that image can be opened (and I'm decoding the data correctly) but is<br>
corrupted. I'll attach the corrupted JPEG and below is the<br>
jpeginfo/GdkPixbuf output:<br>
<br>
jpeginfo:<br>
<br>
test.jpg 96 x 96 24bit JFIF Normal Huffman 4191 Premature end<br>
of JPEG file [WARNING]<br>
<br>
GdkPixbuf:<br>
<br>
GdkPixbuf.PixbufError: Error interpreting JPEG image file (Application<br>
transferred too few scanlines)<br>
<br>
I can also confirm that libfolks is obtaining the same avatars<br>
correctly, so I don't believe these images are broken at the source.<br>
Could anyone advise on how I might try and track these errors down?<br>
</blockquote></div><br></div>