AW: [CF-Devel] Error in CFJavaEditor

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Fri Jul 25 02:01:27 CDT 2003


Todd Mitchell wrote:
>
     
      Here is a definite word on the subject.  During server startup I got
     
     >
     
      this message when I made the University into one image (was a 10k image
     
     >
     
      - 160x128 256 colours)...
     
     >
     
     
     >
     
      read_client_images: length not valid 10256 > 10000
     
     >
     
     
     >
     
      So it looks like 10000 bytes is the image size limit.
     
     >
     
     
     >
     
      So I dropped it down to 128 colours and squeeked it in.
     
     >
     
     
     >
     
      BTW this causes the server to abort, something to keep in mind for all
     
     >
     
      you RGB jockies out there...
     
     
  As a note, I'd say that one should always make the file as small as possible, 
presuming it doesn't effect image quality.

  Eg, if only using 64 colors, save it as a 64 color image.  There are benefits 
everyplace for doing so.

  Now I'm not sure how PNG stores its data.  I'd guess that reducing to 128 
colors made it small enough because it eliminated some number of colors, not 
because it was a more efficient image format.

  BTW, the 10000 byte limit is just a define - MAX_IMAGE_SIZE in socket/image.c. 
  I'd expect that could be increased with no issues at all.



_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list