Well, I have been working unsuccesfully for a couple days trying to come up with an open source solution for creating TGA thumbnails.
Quick background: VistAImaging stores thumbnails with an extension .ABS, but the file type is really TGA. I have worked with this code: http://delphi.icm.edu.pl/ftp/d30free/graph64.zip and I can't get it to compile because it appears to be trying to load a two-byte variable into a one byte dl register. I have worked also with Davie Reed's Targa unit, and while it reads in TGA files great, I can't get it to output one properly. The best I can get is vertical bands of color with no resemblance to the desired image. I know that I could just wait and the HUI or Roy's product will be released and probably make my problem moot, but I would like there to be an option out that doesn't require a commercial graphic component. Such an approach means that others can run the end binary, but not compile (or optimize) the code. So I suggest we approach this a couple of different ways 1. Add a field to IMAGING SITE PARAMETERS (file 2006.1) as follows: -- #22700 THUMBNAIL EXTENSION (#22700 is in my numberspace) This would contain possible entries like this: 'JPG', 'BMP','PNG' etc. Future code could be written such that if this field didn't exist, or had not data, would default to 'TGA'. 2. Agree on .BMP or .JPG as the file type for thumbnails. 3. Agree that thumbnails will always be in the same type as the original document. (I believe Medsphere is doing this option.) 4. Store thumbnails like this: ZZ000001.jpg.ABS, ZZ000002.png.ABS, ZZ000003.bmp.ABS etc. I think that option 1 would be the most 'proper' way to do it: It would allow for any file type to be used for the thumbnail. But it would involve modifying standard files, which would probably require some careful thought. Option 3 would be the easiest. Option 4 might cause problems on old 8.3 filesystems, but I don't think anyone is depending on those anymore (are they?). Plus it would require modification of the server RPC that passes back the name of the thumbnail. I think the code just takes the parent filename and changes the extension to .ABS and passes it out to the client. All of these options, however, may cause problems is used with the VA's full VistAImaging client. If it downloads an .ABS file and expects it to be in TGA format, but it is not, then I don't know what would happen. I would like some feedback on this. I can just choose one option and go with it, but I would like to release my code to anyone that wants it, and I want it to be compatible with the image viewer clients that are in the pipeline. Thanks Kevin ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members