This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-02-25 18:31:58

msalemegypt
Scratcher
Registered: 2010-02-11
Posts: 4

How can i retrieve thumbnail from .sb files using php ?

i need to get thumbnail image of scratch projects automatically on my website , without using jar files or squeak code , just i want to know how to extract it from .sb file
Thanks in advance

Offline

 

#2 2010-02-25 22:29:55

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: How can i retrieve thumbnail from .sb files using php ?

Hmmm.... That might be possible.
It all depends on whether scratch uses a standard picture protocol (like JPG or BMP) when it encodes pictures into the files.
If they do, then we can easily do a binary scan for these formats and write them to separate files.
the allmedia grabber that I have doesn't work on them, so we'll just have to hope...
A proper description of the file format (by 'proper,' I mean what the whole thing means, right down to each bit) from the scratch team would be really helpful in this (hint, hint, nudge, nudge...)


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

Board footer