Thumb () how do add class to img

Hello,

I create the thumbs like this, how can I add attributes to img like a class name?

  <?php
                    if ($cover = $single_image->gallery_img()->toFile()): 

                      echo $cover->thumb(
                        [
                          'autoOrient' => true,
                          'crop'       => false,
                          'blur'       => false,
                          'grayscale'  => false,
                          'width'     => 1000,
                          'quality'    => 90
                        ]
                      );
                      
                    endif; ?>

With html() method:

$cover->thumb([
    'autoOrient' => true,
    'crop'       => false,
    'blur'       => false,
    'grayscale'  => false,
    'width'      => 1000,
    'quality'    => 90
])->html(['class' => 'img-responsive']);
1 Like

thank you @ahmetbora