psi-im / psi

XMPP client
https://psi-im.org/
Other
404 stars 122 forks source link

data url scheme for images in XHTML-IM (XEP-0071) #93

Closed PeterWaher closed 11 years ago

PeterWaher commented 11 years ago

If a data URI scheme us used in an IMG element in an XHTML-IM message, the HTML is not shown.

Section in XEP-0071: http://xmpp.org/extensions/xep-0071.html#profile-image

More info about data uri scheme: http://en.wikipedia.org/wiki/Data_URI_scheme

For more information, or if you need a connection to a chat robot returning images using the data URL scheme, plase contact me at peter dot waher at clayster dot com.

Best regards, Peter Waher

Ri0n commented 11 years ago

how to reproduce? post here ready to use stanza. works fine with webkit build

PeterWaher commented 11 years ago

I used the most recent Psi Windows 64-bit distribution downloaded today. I test it against a script execution robot that can return dynamically generated images.

Example of command sent from Psi to robot:

<message from="peter.waher@jabber.org/LTW7166" to="peter.waher@clayster.cl/57cf223f" type="chat" id="aae4a"><body>x:=-10..10|0.1;plot2d(x,sin(x))</body>
<active xmlns="http://jabber.org/protocol/chatstates"/>
</message>  

Response from robot to Psi:

<message from="peter.waher@clayster.cl/57cf223f" to="peter.waher@jabber.org/LTW7166" id="108" xml:lang="sv" type="chat"><html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAADICAYAAACZBDirAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACNSSURBVHhe7Z3rjx1HlcDzD/Av5CNIKOFD+BC+EGwkxPAhJgIk5BgpmEeEIE6EuDwsJ8aO5QViEmEiQySuILOAJS9RvCTsJkommpHyDk+tDYmCTWZJZu0EJtgb4x3iMLXn9HTPremp7q7HOdVVfc9PKnm6ezz3dnXXr6pOVXVfpgRBEKYUEaAgCFOLCFAQhKlFBCgIwtQiAhQEYWoRAQqCMLWIAAVBmFqcBbg4nlGj+XJjA/NqdNll6rIijWBLEAQhbZwEOD9aE5xJgLoY8eeZ8eLahiAIQqI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nCACZEAESIcIkB4pgxNEgAyIAOkQAdIjZXCCCJABESAdIkB6pAxOEAEyIAKkQwRIj5TBCSJABkSAdIgA6ZEyOMFJgBtef7mBBN4K14AIkB4RIC0iQHrIBVi9KN0kQF2MXS9Gl8ynRwRIiwiQlgEIcF7Ng+CaW4Aa86PW35HMp0cESIsIkJYBCHCNbgFCV3hmrNreFiyZT48IkBYRIC1ZCrDq8l6mCa1dgBgHbI//IWfPnlW333578QVjpb179xr3cyX5PLq0Z88etWPHDrVz507j8aEkuWdo08GDB0vjtEPTAlwcqxkL+QmCIKSEvwBReuXGemuxTG2DIIIgCKngJMANgABHIjpBEDLGX4CCIAiZIwIUBGFqEQEKgjC1JCXAjaPMi2o8Uw6sNM+9sUD7Ox1zFKnQB4WCvroLOCgV5fzslz2GQ3UP2BLz3DSiXbvY9yZ92aN2RDIC3LTUbn60PpqMx7wvlvZ32ucxEqF9XjzKGyFCIdLzEH9mPVeqe8CSqOe2TrxrF/3eJC57HI5IRICbl9otjkdq/VqFXDjii9AFfu/RaIa01utirbCOO1fhkAN5y5mfZPeAD8znVhHz2kW/N0nLHo8jku0Cz8OForr58e/iRY9RgIpaqjyJtZub+TPXu0/dyxBp4f88ynvAjUh5GfnaRb83AeqyR+2I3gRYNWf1mkg/uRC76397XrvQXBdd/7wx/FydA3zg+mRxSurnV/xcJu7zW/vrGCvjj5H10wKMc25IJQfOa6eD15H73tTRyxtV2aNyREW6gyDaCW24cI7U/yZ7MF37DKqLbkfEVkusAQKie8CamOe2gUjXLvK9yVH2qB2RrgDhdqAZAcQavapl49zcm1tMMYhTiNbPrUy8hYjqHrAj7rnpRBIgEPfepC971I5ISoCCIAgxEQEKgjC1iAAFQZhaRICCIEwtIkBBEKYWEaAgCFOLCFAQhClFqf8H5Z+FOfXFyfUAAAAASUVORK5CYII=" /></body></html><body>Clayster.Library.Math.Graph2D</body></message>

The Psi chat window displays:

[21:31:52] x:=-10..10|0.1;plot2d(x,sin(x)) [21:31:54] peter.waher@clayster.cl Clayster.Library.Math.Graph2D

(i.e. the XHTML is not displayed. instead the text part is shown)

Ri0n commented 11 years ago

what about stanza with image?

PeterWaher commented 11 years ago

Sorry, the above post hid the XML. I've now updated it so XML is correctly displayed.

Ri0n commented 11 years ago

I've found a bug in image encoder. it always encodes as jpeg and treats all images as jpeg. probably the problem is here

PeterWaher commented 11 years ago

Excellent :) How can I get access to a Windows client with this bug fixed? Or when will such a downloadable version be available?

Ri0n commented 11 years ago

I'll fix it when have some spare time

Ri0n commented 11 years ago

I was wrong regarding jpeg. actually it was halfly assumption and it's another but unrelated to Psi. But I've found another source for this issue and fixed it in r08945e6

PeterWaher commented 11 years ago

Excellent :) Thanks for the quick response.

Is it possible to get notified whenever a new downloadable (Windows 64-bit) installable version is available? I checked the nightly builds, but there seems not to be one available recently: http://psi-im.org/files/snapshots/win/

Ri0n commented 11 years ago

you can try Psi+. I think new build will be available soon.