[Steve writes:]
   I want to display digital camera images with the Image widget...
   (the images are JPEG and PNG, if that matters).

   When I call the image method set_filename() to load the image, however,
   the program hangs for longer than I'm willing to wait (10+ minutes!).

Hi Steve,

There are two potential performance issues that may be contributing to your
program hanging.

1. Icon graphics traditionally supported only 256 colors, and did not handle
   JPG or PNG.  Unicon has added preliminary JPG support but the code needed
   further tuning for reasonable performance.  This might actually be the
   main problem, rather than the rescaling per se.  If so, you will soon be
   in luck, as a grad student and I recently worked on speeding up unicon's
   JPG support and we are just about finished.  PNG support is another matter;
   we would like it but don't have it yet.

2. The scaling code will be slower if it is in Unicon, than it would be if
   it were written in C.  If scaling actually turns out to be an issue, your
   options would include to write or link to some faster scaling code in C,
   or to do the application in a 3D (sub)window -- opengl has scaling.

One extreme option I have resorted to before was to convert JPG or PNG to GIF
since Icon supports GIF.  But, after we get the performance tuning code into
CVS, you probably will not need to do that.

Clint

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to