[mapserver-users] mapcache: background color
thomas bonfort
thomas.bonfort at gmail.com
Thu Dec 27 03:03:00 PST 2012
imageio_jpeg.c, around line 200: also extract alpha along with
red,green,blue. if alpha=0, set pixptrs to 255 instead of *r,*g,*b.
--
thomas
On Thu, Dec 27, 2012 at 11:36 AM, Daniele Debernardi <daniele at geosar.ch>wrote:
> Hi,
> I tried with your suggestion to use a mixed image format but with
> unsuccessful results.
> For my case I just need to force that black background color to white, is
> there anyplace in
> mapcache code where I can change it?
>
> Any suggestion on which part of the code I have to look would be enough.
>
> Thanks,
> Daniele
>
>
> On 19. 12. 12 12:47, thomas bonfort wrote:
>
> Daniele,
> The background color isn't configurable, although that could become a
> configurable option with a bit of funding. Your other option might be to
> use a "mixed" image format, which will use JPEG compression for complete
> tiles, and png with a transparent background for tiles that are
> half-in/half-out.
>
> regards,
> thomas
>
>
> On Wed, Dec 19, 2012 at 12:26 PM, Daniele Debernardi <daniele at geosar.ch>wrote:
>
>> Hi,
>> there is a possibility to change the background color of the area outside
>> of the extent of the cache
>> when the tile is merged toghether?
>>
>> example:
>> when i request a tile with an extent that is half outsite the map extent
>> and half inside, mapcache generates
>> a tile with the half outsite of the map with black background and i would
>> like to change it to white.
>>
>> Thanks in advance
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121227/27e36585/attachment.htm>
More information about the MapServer-users
mailing list