imgDTag

Navigation:  Development > Function Reference > Helpers > Html >

imgDTag

Previous pageReturn to chapter overviewNext page

Display image with auto re-size by GD library to maintain the quality.  .
 
App::Html()->imgDTag(path,[Size],[Option]);

 

Parameter

Description

Path

File path of the image

Size

Define size in Pixel or Percentage

Options

HTML Attributes

 

See bellow example:

 

// Define in Pixel
echo App::Html()
    ->hiddenTag(
        App::Config()->fileManagerDir("/logo.jpg"),
        "/100/fix",
        array(
            "id"=>"profile_image"
        )
    );
 

// Define in percentage
echo App::Html()
    ->hiddenTag(
        App::Config()->fileManagerDir("/logo.jpg"),
        "/1.5/per",
        array(
            "id"=>"profile_image"
        )
    );