I've been trying to find solution to my problem for the last couple of weeks without any luck. I've been finding that my theme and WP both fail to create proper responsive images. This especially goes for PNG files, which instead of getting smaller are actually getting bigger in size.
For example if I upload PNG with size 12kb, WP and my theme created files which were 3-4 times bigger in size even though the resolution was smaller than the original file.
Now I managed to disable this adaptive image system in my theme and I have found a way to disable WP creating files by using custom code. However, what I'd like to achieve is to upload my own custom sized images instead of relying on WP or some other piece of code to generate smaller or larger images.
Does anybody know of a solution how to override WP and make it deliver manually uploaded custom sized images with
srcset ... I'd like to achieve this firstly because I can make better optimized images of different sizes (compared to algorithms used by WP) and secondly I want my images to be hosted on CDN.
Thanks in advance.