次の関数を使用して、CodeIgniterのフォーム(100 * 100)に表示しながら画像のサイズを変更したい:
echo img('imagepath');
これでいける..
$image_properties = array(
'src' => 'imagepath',
'alt' => 'Me, demonstrating how to eat 4 slices of pizza at one time',
'class' => 'post_images',
'width' => '100',
'height' => '100',
'title' => 'That was quite a night'
);
echo img($image_properties);
出典: コードイグナイター