User (Legacy) Posted April 22, 2005 Report Share Posted April 22, 2005 On our production web server, which supports 256 colors with its display card, I am setting the chart.RGB property to RGB(226, 220, 192) but when the chart renders (as a jpg), the color is not applied to the background. When I generate the same exact chart on an internal staging server, which is identical to the production server, the chart background shows correctly. I have confirmed that the CfxSvr.ini settings for both server installtions are identical: ; -------------------- ; PNG Settings ; ; Set Colors to 8 to set the default to palettized PNG images and 24 for full color images [Png] DefBrowserFlags=1 Interlaced=0 Colors=24 ; -------------------- ; JPEG Settings ; ; Quality and Smooth range from 0 to 100 [Jpeg] Quality=75 Smooth=0 Can anyone point me to a reason why the background might render correctly on one server and not another? Thanks, Josh Link to comment Share on other sites More sharing options...
Software FX Posted April 28, 2005 Report Share Posted April 28, 2005 When we generate an image we "paint" the chart in a DC (Device Context) backed up by a bitmap. The capabilities of this DC match (but not exceed) the machine settings. Have you tried generating a PNG instead of an JPG (it looks way better anyway) and set the Colors setting in the INI to 8 ? This should give you a palettized png and will not try to use more than 256 colors (which according to you is what is supported in the server). Does the server supports full color? (even at a lower resolution). Try logging in as Administrator and change the settings to full color (or 16K or 32K colors). Regards, JC Software FX Support "Josh Gleason" <jgleason@oldmutualus.com> wrote in message news:aNqcD93RFHA.2904@webserver3.softwarefx.com... > On our production web server, which supports 256 colors with its display > card, I am setting the chart.RGB property to RGB(226, 220, 192) but when > the chart renders (as a jpg), the color is not applied to the background. > When I generate the same exact chart on an internal staging server, which > is identical to the production server, the chart background shows > correctly. > > I have confirmed that the CfxSvr.ini settings for both server installtions > are identical: > > ; -------------------- > ; PNG Settings > ; > ; Set Colors to 8 to set the default to palettized PNG images and 24 for > full color images > [Png] > DefBrowserFlags=1 > Interlaced=0 > Colors=24 > > ; -------------------- > ; JPEG Settings > ; > ; Quality and Smooth range from 0 to 100 > [Jpeg] > Quality=75 > Smooth=0 > > Can anyone point me to a reason why the background might render correctly > on one server and not another? > > Thanks, > Josh > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.