Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Eichner, Andreas - SID
, Andreas -Ursprüngliche Nachricht- Von: Rahkonen Jukka (MML) Gesendet: Montag, 17. Mai 2021 16:14 An: Eichner, Andreas - SID ; Mapserver-Users (mapserver-users@lists.osgeo.org) Betreff: Re: [mapserver-users] differing image size with different mapserver versions Hi, Does it mean that Map

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
Kopio: Rahkonen Jukka (MML) ; Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: Re: [mapserver-users] differing image size with different mapserver versions Progress! Using Andreas' suggestion: changing the typedef in line 91 of mapagg.cpp from typedef maps

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
ä: Eichner, Andreas - SID Lähetetty: maanantai 17. toukokuuta 2021 16.53 Vastaanottaja: Rahkonen Jukka (MML) ; Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: AW: [mapserver-users] differing image size with different mapserver versions Hi Jukka, as a result of the discussion IMO Erik

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Richard Greenwood
(MML) > Gesendet: Montag, 17. Mai 2021 15:26 > An: Rahkonen Jukka (MML) ; > Mapserver-Users (mapserver-users@lists.osgeo.org) < > mapserver-users@lists.osgeo.org> > Betreff: Re: [mapserver-users] differing image size with different > mapserver versions > > Hi, > > >

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Eichner, Andreas - SID
server-users] differing image size with different mapserver versions Hi, (Re-sent as edited to mailing list because the body was originally too long. Are you sure about “I actually found that 6.4 produced small, aliased images with both the GD and AGG drivers”. Originally the AGG library

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Richard Greenwood
f ANTIALIAS options. > -Jukka Rahkonen- > > > > > > *Lähettäjä:* mapserver-users > *Puolesta > *Richard Greenwood > *Lähetetty:* maanantai 17. toukokuuta 2021 15.26 > *Kopio:* mapserver-users@lists.osgeo.org > *Aihe:* Re: [mapserver-users] differing image size

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
Jukka (MML) Lähetetty: maanantai 17. toukokuuta 2021 16.06 Vastaanottaja: Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: Re: [mapserver-users] differing image size with different mapserver versions Hi, (Re-sent as edited to mailing list because the body was originally too long. Are you

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
d Lähetetty: maanantai 17. toukokuuta 2021 15.26 Kopio: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org> Aihe: Re: [mapserver-users] differing image size with different mapserver versions Thanks for the suggestions. The consensus seems to be that anti-aliasing is caus

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Richard Greenwood
It would be interesting to test the output size with more > typical maps. > > > > -Jukka Rahkonen- > > > > *Lähettäjä:* mapserver-users > *Puolesta > *Seth G > *Lähetetty:* maanantai 17. toukokuuta 2021 11.27 > *Vastaanottaja:* Richard Greenwood > *Kopio:*

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
interesting to test the output size with more typical maps. -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Seth G Lähetetty: maanantai 17. toukokuuta 2021 11.27 Vastaanottaja: Richard Greenwood Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] differing image size with

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Seth G
Hi Richard, In your OUTPUTFORMAT declaration maybe try setting the DRIVER to *AGG/PNG8* Also IMAGEMODE PC256 was only for GD support that was removed in 7.0. Try IMAGEMODE RGB (or RGBA if you want transparency). Seth -- web:http://geographika.co.uk twitter: @geographika On Sat, May 15, 2021

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-15 Thread Richard Greenwood
I built from main and tested with ANTIALIAS ON and ANTIALIAS OFF. Assuming that my mapfile syntax below is correct, there is no difference in size and the resulting PNG is still approximately 3x larger than the MapServer 6.4 one. CLASS STYLE COLOR 255 255 208 ANTIALIAS ON END

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-15 Thread Lars Schylberg
Hi, When I look at the images it seems like the 7.6 have anti-aliasing but the 6.4 does not have it.  The 7.6 is more fuzzy and the 6.4 image You could that the river is not as smooth. /Lars S. Den 2021-05-15 kl. 17:43, skrTo ev Richard Greenwood: I get significantly different image sizes be

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-15 Thread Even Rouault
Actually, I just tried to open mapserv64.png with gimp, and export it as a non-interlaced or interlaced PNG. And the non-interlaced version is 60 kB vs 96 kB for interlaced. So interlacing vs non-interlacing isn't the cause here. Looking more closely at mapserv64.png  vs mapserv76.png , they a

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-15 Thread Richard Greenwood
Even, Thank you. I had ignored the difference in the interlacing of the two images because I didn't think it would have affected the size. The maprgbapng.c file no longer exists in MapServer 6.4 or 7.6. There is an "if ( interlaced ..." code block in mapoutput.c that is the same in 6.4 and 7.6. I

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-15 Thread Even Rouault
Richard, your 6.4 image is a interlaced PNG, whereas the 7.6 is a non-interlaced one. I see in the git history a relevant commit: $ git show 9984b39cc8f74d60eb240728df660a172a118aad commit 9984b39cc8f74d60eb240728df660a172a118aad Author: Thomas Bonfort Date:   Sun Oct 5 15:59:44 2008 +   

[mapserver-users] differing image size with different mapserver versions

2021-05-15 Thread Richard Greenwood
I get significantly different image sizes between MapServer 6.4 and 7.6 with the same output format definition. I've tried many variations of the following. OUTPUTFORMAT NAME "png-test" DRIVER "AGG/PNG" # GD driver is same (6.4 only) MIMETYPE "image/png; mode=8bit" IMAGEMODE PC256 FORMA