I cannot get the full (unmodified) image size using
the_post_thumbnail( 'full' );
I have also tried:
It still returns the cropped image. I can see that the unmodified size is uploaded on the server and there is no problem with that. I checked using
And it returns following sizes:
Array (  => thumbnail  => medium  => medium_large  => large  => custom_size1 )
Why there is no full size? Has something changed in the WordPress recent versions or is it something else? Thanks.
Edit: I have figured out that it is the WordPress srcset which is adding multiple image sizes in the URL and it uses the smaller image.