[ka-Map-users] JPEG output (and caching)

Paul Spencer pspencer at dmsolutions.ca
Fri May 20 08:54:44 EDT 2005


Jacob,

try the newest version available (0.1.1), it should fix the issue with 
many PHP processes and crashing your computer.

I agree with the version number change, I'll file a bug for that.

Cheers

Paul

Jacob Delfos wrote:
> Well..... If I look at the individual images, they seem OK (they're 
> overlayed alright, and quality is good). But I don't actually get to see 
> those through the browser. But the images seem fine.
>  
> Based on the tile URL's, it seems they are suitable for adding a random 
> seed at the end of them. Or better: a version number, which is only 
> changed when the info in the site is changed (so the developer gets to 
> choose whether a user sees a cached version or not). Would that fix it?
>  
> Sorry I can't give more specific debug information, but unfortunately 
> every time the application crashes I have to reboot my computer, because 
> my Apache crashed and I have about 100 stuck PHP processes. It's slow 
> debugging that way, and I can't get much other work done if I keep 
> rebooting :)
>  
> Regards,
>  
> Jacob
>  
> 
> -----Original Message-----
> From: Paul Spencer [mailto:pspencer at dmsolutions.ca]
> Sent: 19 May 2005 19:52
> To: Delfos, Jacob
> Cc: ka-map-users at lists.maptools.org <mailto:ka-map-users at lists.maptools.org>
> Subject: Re: [ka-Map-users] JPEG output (and caching)
>  
> Um.  I haven't acctually tried JPEG output I guess.  You should have
> been able to do this by adjusting the image format in the maps array in
> config.php and then it would choose the appropriate format in
> setOutputFormat().
>  
> There is nothing on the client side that indicates the file type, so it
> is likely that if you change the file format, your browser will find the
> tile in its cache rather than requesting it from the server.
>  
> Tile urls are something like:
>  
> tile.php?l=<left pixel value>&t=<top pixel value>&s=<scale>&map=<map>
>  
> and the image headers are modified in tile.php to include aggressive,
> long term caching in the browser (at least as best as I know how to) so
> if you changed anything on the server without clearing the browser
> cache, you would still see the browser cache version I think.
>  
> This version is targetted at a more static installation ... if anyone
> has hints on how to make the browser ignore the browser cache on demand,
> I would be interested.
>  
> Do the jpeg images that get produced actually look right?
>  
> Paul
>  
> Delfos, Jacob wrote:
>  > I tried to configure it to output JPEG, having set the type to JPEG, and
>  > changed imagepng to imagejpeg. But I only get broken images (both
>  > explorer and firefox), even at the first load (where PNG did work).
>  > Looking in the directory, it does seem to have created a number of jpeg
>  > images, but these did not appear in the browser.
>  >
>  > Another thing I can into: after changing to JPEG, I had to force the
>  > browser to delete all temp files, because even with a shift-refresh it
>  > was showing the old PNG files (which were not even in the temp directory
>  > anymore). I can see how that would be a problem if the map content is
>  > updated.
>  >
>  > Regards,
>  >
>  > Jacob
>  >
>  >
>  >
>  > *JACOB DELFOS
>  > SPATIAL INFORMATION ANALYST
>  > *Maunsell Australia Pty Ltd
>  > 629 Newcastle Street, Leederville, WA 6007
>  > PO Box 81, Leederville, WA 6902
>  > Western Australia
>  > ABN 20 093 846 925
>  >
>  > Tel     + 61 8 9281 6185
>  > Fax    + 61 8 9281 6297
>  > _jacob.delfos at maunsell.com <mailto:_jacob.delfos at maunsell.com>_
>  >
>  >
>  > ------------------------------------------------------------------------
>  >
>  > _______________________________________________
>  > ka-Map-users mailing list
>  > ka-Map-users at lists.maptools.org <mailto:ka-Map-users at lists.maptools.org>
>  > http://lists.maptools.org/mailman/listinfo/ka-map-users
>  
> -- 
> +-----------------------------------------------------------------+
> |Paul Spencer                           pspencer at dmsolutions.ca 
> <mailto:pspencer at dmsolutions.ca>   |
> +-----------------------------------------------------------------+
> |Applications & Software Development                              |
> |DM Solutions Group Inc                 http://www.dmsolutions.ca/|
> +-----------------------------------------------------------------+
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

-- 
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+


More information about the ka-Map-users mailing list