Resize Image

1

I need to resize to a fixed size the images that come from getass tried in html but the images have different sizes so each one is of a size. I would like to set a fixed size to show this image with the size set regardless of the size of the original image.

Code:

<td align="Center">
   <?php 
      echo '<img src="'.$objCheck->getass().'" class="" height="15%" width="15%">'; 
   ?>
</td>

There are images that are 90 degrees to the right and some normal ones. Is not there a way to standardize this too?

    
asked by anonymous 27.05.2016 / 16:00

1 answer

0

Use the style attribute instead of width and height . To fix the size of the image maybe you can do the following ...

<td align="Center">
    <?php 
        echo '<img src="'.$objCheck->getass().'" class="" style="height:15em; width:15em">'; 
    ?>
</td>

The em unit is the height of a line (actually the height of the font). Or if you want more specific use px to determine the exact pixel size.

css

    
09.06.2016 / 23:14