I am trying to render an Image in view file. My code is like below:
I have tried this code:
[ 'attribute'=>'photo', 'value'=>'uploads/' .$model->photo, 'format' => ['image',['width'=>'100','height'=>'100']], ],
Image is getting rendered correctly, but it is not getting resized.
Please any one can tell me, what is wrong in the code.