( Backported from v0.40.6 ) Added a global restriction for the max WxH pixels size when generating a thumb to reduce the risk of excessive memory usage. The default limit is pretty generous and currently set to max 250 pixels and can be changed with the env PB_THUMBS_MAX_SOURCE_PIXELS . ( Backported from v0.40.6 ) Bumped golang.org/x/ dependencies ( #7865 ).