Hello! Minesh is on vacation. If you don't mind, I'll continue with you on this ticket.
The issue has been escalated to the concerned teams. It will be handled in an upcoming release. We don't really have a visibility on when this will be fixed.
In the meantime, you can work around it by building the image tag manually and passing the URL of the resized image using the types shortcode. The trick is to use the url="true" shortcode argument. Read more about the available arguments for the Image field here https://toolset.com/documentation/customizing-sites-using-php/functions/#image
The following shortcode will return the image URL:
[types field='image' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='400' height='300' resize='crop' url="true"][/types]
Where as the following will return the <img> tag of the resized image:
[types field='image' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='400' height='300' resize='crop'][/types]
Check the screenshot of my result: hidden link
You can log in to this test site using this link hidden link
I used a content template instead of a view: hidden link
And I added both images to it. Check it here hidden link
Instead of using:
[types field='image' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='400' height='300' resize='crop'][/types]
Build the whole image block like so:
<img
src="[types field='image' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='400' height='300' resize='crop' url="true"][/types]"
width='400'
height='300'
class="attachment-custom">
However, by doing this, you won't get the image title and alt text generated automatically. For that reason, you can add the custom shortcode in this ticket to generate both of them https://toolset.com/forums/topic/alt-text-output-for-images-from-custom-field/#post-1857657
Like this:
<img
src="[types field='image' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='400' height='300' resize='crop' url="true"][/types]"
title="[media-info field='wpcf-image' info='title']"
alt="[media-info field='wpcf-image' info='alt']"
width='400'
height='300'
class="attachment-custom">
I hope this helps. Let me know if you have any questions.