Content Size Fitter adapts ImageRaw to text, but not Image?

Hello there,
I’ve looked around to try and understand the use of Content Size Fitter and Layout Groups, in order to resize a parent to adapt to the child Text content.
I think I’ve got the gist of it, but there’s an issue I’ve encountered, and the Unity help seems to not mention it at all:
If you put a Content Size Fitter and Vertical Layout Group on your Image (as stated by unity docs), this actually does not resize your image. It seems the Image’s layout information (preferred size) takes priority on Vertical Layout Group.
But this does work using RawImage, instead of Image.

I wondered if I was missing something here. Would there be a way to remove the Image’s layout information? So that Layout Group information can take priority?
I tried re-ordering the components, but it didn’t do anything.

The reason I wish to use Image instead of RawImage, is I’d like to mirror the image without affecting the child Text. I can do this easily with a sprite (Image), but not with a texture (RawImage).

I’d appreciate any help. Thanks!

Noticed the same thing. Did you find anything?

Bump, it does not work, neither with Image nor RawImage.

It turns out either Daffindo mixed up the two, or something weird happened, because I observe the reverse.

It works with Image. It doesn’t work with RawImage.

Unfortunately I need to use RawImage because I need to dynamically update the texture with an image.

It turns out I was wrong; I got it to work somehow, by using some complicated nesting of content size fitter and vertical layout group with or without control child size (even after simplifying to the simplest configuration possible). I believe the top level needs vertical layout group and control child size but not expand child size, and content size fitter with preferred everything. Then there needs to be an intermediary that has vertical layout group with NO control anything, and content size fitter with preferred size. Finally inside that, will lie the image or text, with no content size fitter