From: Daniel A. S. <st...@ic...> - 2002-01-21 05:11:43
|
Mats, thanks for doing this, Img has been on my todo list for a while... I'd be interested in a copy, if you want I can also host it on my page with the other mac tcl extensions (http://www.maths.mq.edu.au/~steffen/tcltk/) At 12:58 +0100 on 19/1/02, Mats Bengtsson wrote: >1) I build the image libs, libjpeg, libtiff, libpng, and zlib, as >separate shared libs (which is how it works on win and unix), >which get loaded at runtime by Img. But the loading is made from >tcl's present folder (Build) which is not what you want. >BTW: Img uses tclMacLoad.c from 8.0p2 to do this, which needed >some patching to work. >Any better solution here? Can't run the test suite because of this, >I think. you could try merging the image shared libraries into the Img shlb (set the merge flag in the info window for the libs) and load them from the current fragment file. do you really need to load them explicitly or could you just link against them and let the CFM loader do the work for you? >2) Tested opening a number of various image formats, and all >work except tiff images, where only the red component shows. >When searching the net for mac parts I found a later release of >tifflib (3.5.7) which I use. Tried Jack Jansen's mac port, but >the CW 7 projects wheren't useful with my CW 6 since all essential >settings were lost during conversion. If you like, I can export Pro7 projects to xml for you which Pro6 can import without loosing settings... >A number of changes was needed in the Img code, but only a tiny >one in the other libs (zlib: #if insted of #ifdef in one place). Cheers, Daniel -- ** Daniel A. Steffen ** "And now to something completely ** Department of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |