Hi Team, can we add support for webp?
Thanks!
Hi Team, can we add support for webp?
Thanks!
It’s added to the todo list. Which client you talked specifically here? XYZ, WMS, WMTS, or for some specific server?
I actually meant for webp files - as raster layer. But since webp is so efficient, I assume it would be great for any other layer
I’m even wondering if adding a cache option for webp would be benefitial? Worth investigating
You are right! We will make it happen and keep you posted.
Sweet! No rush, this is not mission critical, just a though I had yesterday 
Especially for web based layers it seems useful, 25% - 35% reduction in filetransfer size is huge if the server offers it.
Hi Julian,
Can you pull beta040 and give it a shot? It should support webp now.
Thanks,
Ben
Hi Ben, I get “File does not exist” - it’s trying to find a “.wepw” file.
However, my GIS Export gave me a “.webp”, “.webp.aux.xml” and “.webp.ovr” file.
I see. Can you send us a test file (including .webp, .webp.aux.xml, .webp.ovr) so we can make sure the changes would works for you?
And you can try beta041 for a quick, it should now support .aux.xml.
Hi Ben, same error - i sent the files via email!
Thanks 
It works for me with beta041, here is my complete code, can you give it another shot?
var webp = Path.Combine(
AppDomain.CurrentDomain.BaseDirectory,
"Data", "Stadtkarte_farbig_erweite.webp");
Console.WriteLine($"webp: {webp}");
Console.WriteLine($"aux.xml: {File.Exists(webp + ".aux.xml")}");
Console.WriteLine($"ovr: {File.Exists(webp + ".ovr")}");
var layer = new SkiaRasterLayer(webp);
layer.Open();
var bbox = layer.GetBoundingBox();
var image = new GeoImage(1024, 1024);
var canvas = new SkiaGeoCanvas();
var extent = ThinkGeo.Core.MapUtil.GetDrawingExtent(layer.GetBoundingBox(), image.Width, image.Height);
canvas.BeginDrawing(image, extent, GeographyUnit.Meter);
layer.Draw(canvas, new Collection<SimpleCandidate>());
canvas.EndDrawing();
image.Save("Stadtkarte_rendered.png");
Ah, I used WpfRasterLayer instead of SkiaRasterLayer. With Skia it works! With WpfRaster I get the exception.
Thanks!
It’s just added to WpfRasterLayer as well in beta042.
I’m sorry, but I get the exception still for WpfRasterLayer in beta042 - The file specified does not exist (.wpw)
Can you pull beta044 and give it another shot?
Hi Ben, that works now! Thanks 
That’s awesome 