|
Re: Image manipulation: msg#00122lang.smalltalk.squeak.beginners
G M wrote: > Hi, > > I'm a beginner who's trying to use Squeak to do some image > manipulation at the back end. It's part of a Webapp for > medical images (the Web part might be handled by Seaside). I really > like Seaside, but I have not decided because I'm concerned about > image manipulation in Squeak. So here's the issue: > > 1. I have not found a squeak package that does something > similar to ImageMagick. If there's no such facility in Squeak, > how can I "call" an external library such as ImageMagick > from the Squeak image? There is a Squeak package which may do what you want: http://map1.squeakfoundation.org/package/da65281d-547e-44d7-a0cd-1ef4c17dc8c8 Otherwise you can use ImageMagick either by executing it's various command line tools. For an example of running a command line app look at the UnixProcess class side method called testRunCommand. It is fairly straightforward to execute an external command from inside Squeak. Finally if executing from the command line takes too long you might consider building a simple C interface for the ImageMagick tools you need and then calling that interface via FFI ("Foreign Function Interace" -- call C functions from Squeak). It is certainly possible to use the ImageMagick libraries directly from Squeak but writing a simple wrapper usually makes it easier. There are lots of examples of FFI in the Squeak image. Have a look at the Wiki page for more details (don't know if it is up to date though): http://minnow.cc.gatech.edu/squeak/1414 Finally if FFI proves to be too slow you can go even deeper and write a plugin. I don't have a good link for this...never done it myself. Hope that helps! David
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ANN] UI for managing Pier users, David Pollak |
|---|---|
| Next by Date: | Re: Image manipulation, Brad Fuller |
| Previous by Thread: | Image manipulation, G M |
| Next by Thread: | Re: Image manipulation, Brad Fuller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |