[mapserver-dev] regression in phpmapscript ?
Oliver Christen
oliver.christen at camptocamp.com
Thu Mar 20 11:06:07 EDT 2008
The problem was observed on a mapserver 5.0.2 / PHP 5.2.5
it works ok on a mapserver 5.0.2 / PHP 5.2.0
My guess is some incompatibility linked to the new libGD in PHP 5.2.5 but my
knowledge is limited regarding the way mapscript use GD
regards
Oliver
> The only things I can think of to explain this kind of behavior change
> would be either some change in GD, or some side-effect related to the
> addition of AGG support in MapServer 5.0.
>
> Which version were you (Oliver) using before? Was it 4.10? If ThomasB is
> listening he might have some idea?
>
> Daniel
>
>
> Jeff McKenna wrote:
>> Can one of the phpmapscript devs help Oliver out? I can only find an old
>> ticket related to pasteImage transparency:
>> http://trac.osgeo.org/mapserver/ticket/463
>>
>> The latest MS4W also upgraded GD to 2.0.35 in its MapServer support, but
>> I don't know if this affects the issue.
>>
>> -jeff
>>
>>
>>
>> Oliver Christen wrote:
>>> Hi,
>>>
>>> I have observed some kind of regression in the way the php_mapscript
>>> function "pasteImage" behave in a php_mapscript compiled for Mapserver
>>> 5.2.0 / PHP 5.2.5 (typicaly the one available in the latest MS4W
>>> package)
>>>
>>> In this version, the pasteImage only handle the transparency correctly
>>> for 8bit images (as it is clearly stated in the documentation "Note" at
>>> the bottom
>>> http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/imageobj)
>>>
>>> BUT, until before these versions of php/mapserver, the transparency
>>> worked fine with 16bit images (jpeg for example)
>>> The latest working version I have is a php_mapscript compiled for
>>> Mapserver 5.0.2 / PHP 5.2.0
>>>
>>> So, my questions are:
>>>
>>> was it really normal for the pasteImage function to handle transparency
>>> for 16bit images until recently ? because the "Note" seems to imply it
>>> is not.
>>>
>>> was there any recent code modification in php mapscript's function
>>> pasteImage ?
>>>
>>> what could have possibly changed between php 5.2.0 and 5.2.5 that would
>>> change the behaviour of the pasteImage function ?
>>> I looked at php's changelog but couldnt find any clue beside the fact
>>> libGD was updated to 2.0.35 in PHP 5.2.2, but again I couldnt notice any
>>> significant info in libGD changelog.
>>>
>>> thanks in advance
>>>
>>> Oliver Christen
>>>
>>>
>>
>>
>>
>
>
> --
> Daniel Morissette
> http://www.mapgears.com/
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
More information about the mapserver-dev
mailing list