[MapProxy] Compressing JPEG tiles in YCbCr color space?

Johannes Kröger (WhereGroup) johannes.kroeger at wheregroup.com
Wed Jun 22 00:56:56 PDT 2022


Reconsidering this I think it is just a misunderstanding.

 From what I found, the JPEG tiles generated by MapProxy (via Pillow) DO 
use YCbCr color space and I think this might even be the case for all 
normal JPEG compressed files. I only knew the optimisation in the 
context of GDAL where JPEG is used in GeoTIFF and YCbCr is not the default.

So, it seems like there is no need (or opportunity) to configure 
anything special to get YCbCr JPEG compressed tiles with MapProxy.

Everything about this is kind of hard to really get details on, with 
tools showing different information for the same files. Brrr! :)

Cheers, Hannes

Am 07.06.22 um 12:12 schrieb Johannes Kröger (WhereGroup):
> Hey folk :)
>
> For compressing JPEG imagery it is highly useful to use the YCbCr 
> color space (see e.g. Paul Ramsey's classic 
> https://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html 
> ). The compression rate is much higher.
>
> Is this possible to setup with MapProxy when using JPEG or GeoTIFF 
> tiles in a cache? I assume it uses RGB by default, at least that's 
> what my googling around PIL/Pillow's default settings got me.
>
> If not, would MapProxy still work as intended and allow a QGIS client 
> to consume its output via WMS/WMTS fine if I was to reencode the tiles 
> in the cache in YCbCr myself?
>
> Cheers, Hannes
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy

-- 
Johannes Kröger / GIS-Entwickler/-Berater

---------------------------------------------
Schon gewusst?
In unserem Blog geben wir Tipps & Tricks zu Open-Source-GIS-Software
und berichten aus unserem Experten-Alltag:
https://wheregroup.com/blog/
---------------------------------------------

WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany

Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11

johannes.kroeger at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x840A4B843789797F.asc
Type: application/pgp-keys
Size: 2472 bytes
Desc: OpenPGP public key
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20220622/034a5bf9/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20220622/034a5bf9/attachment.sig>


More information about the MapProxy mailing list