publicstaticvoidThrowDimensionsTooLarge(intwidth,intheight)=>thrownewImageFormatException($"Image is too large to encode at {width}x{height} for JPEG format.");
[MethodImpl(InliningOptions.ColdPath)]
publicstaticvoidThrowNotSupportedComponentCount(intcomponentCount)=>thrownewNotSupportedException($"Images with {componentCount} components are not supported.");