<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Armin,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks, this fixed it. The application works great
with jpg. I just had to add the missing leading $ :) <BR>I could play with this
application forever.....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>-----Original Message-----<BR>From: Armin Burger
[mailto:armin.burger@gmx.net] <BR>Sent: 24 May 2005 16:30<BR>To: <A
href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</A>.<BR>Cc:
<A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A><BR>Subject:
RE: [ka-Map-users] JPEG output (and caching)</DIV>
<DIV> </DIV>
<DIV>Jacob,</DIV>
<DIV> </DIV>
<DIV>this problem should be related to the line 109 in tile.php:</DIV>
<DIV> </DIV>
<DIV> $szCacheFile = $szCacheDir."/".$szTileId.".png";</DIV>
<DIV> </DIV>
<DIV>Here the image extension is hardcoded and the browser cannot find the
JPEG<BR>files because it looks for PNG's. I modified it to </DIV>
<DIV> </DIV>
<DIV> szCacheFile =
$szCacheDir."/".$szTileId.$GLOBALS['szImageExtension']; </DIV>
<DIV> </DIV>
<DIV>and it worked fine for JPEG definition.</DIV>
<DIV> </DIV>
<DIV>Armin</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>MESSAGE FROM jacob.delfos at
maunsell.com:<BR>------------------------------------------<BR>I tried to
configure it to output JPEG, having set the type to JPEG, and<BR>changed
imagepng to imagejpeg. But I only get broken images (both explorer<BR>and
firefox), even at the first load (where PNG did work). Looking in
the<BR>directory, it does seem to have created a number of jpeg images, but
these<BR>did not appear in the browser.</DIV>
<DIV> </DIV>
<DIV>Another thing I can into: after changing to JPEG, I had to force the
browser<BR>to delete all temp files, because even with a shift-refresh it was
showing<BR>the old PNG files (which were not even in the temp directory
anymore). I can<BR>see how that would be a problem if the map content is
updated. </DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV> </DIV>
<DIV>Jacob</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>JACOB DELFOS<BR>SPATIAL INFORMATION ANALYST<BR>Maunsell Australia Pty
Ltd<BR>629 Newcastle Street, Leederville, WA 6007<BR>PO Box 81, Leederville, WA
6902<BR>Western Australia<BR>ABN 20 093 846 925</DIV>
<DIV> </DIV>
<DIV>Tel + 61 8 9281 6185<BR>Fax + 61
8 9281 6297<BR>jacob.delfos at maunsell.com</DIV>
<DIV> </DIV>
<DIV>-- <BR>Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!<BR>Ab 4,99
Euro/Monat: <A
href="http://www.gmx.net/de/go/dsl">http://www.gmx.net/de/go/dsl</A><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT></DIV></BODY></HTML>