Hi Martin,
Thanks, we had already detected the problem with Jpeg images and even
reported here to the list, but until now the solution eluded us. Your
solution is already on the repo.
Cheers,
Offray
On 21/06/15 10:53, MartinW wrote:
Offray wrote
Ok. Let me know what happens.
Hi Offray,
I got the scraping, importing and visualization working. Not sure, what went
wrong the first time.
I found one little bug, when the avatar was a jpeg. It can be solved by
changing the following lines in TwitterProfile>>scrapAvatarFrom:
from:
((avatarUrl asLowercase endsWith: '.jpeg') or: (avatarUrl asLowercase
endsWith: '.jpg'))
ifTrue: [
avatarImage := ZnEasy get: avatarUrl.
"(PNGReadWriter on: avatarImage ) nextPutImage:
(JPEGReadWriter on:
avatarImage )" ].
to:
((avatarUrl asLowercase endsWith: '.jpeg') or: (avatarUrl asLowercase
endsWith: '.jpg'))
ifTrue: [avatarImage := ZnEasy getJpeg: avatarUrl.].
Very nice result. Thank you a lot for sharing it!
Best regards,
Martin.
--
View this message in context:
http://forum.world.st/Status-of-Twitter-api-analysis-visualization-in-Pharo-tp4832460p4833396.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.