PHP code example of lightboxdigital / wp-dynamic-image-resizer

1. Go to this page and download the library: Download lightboxdigital/wp-dynamic-image-resizer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lightboxdigital / wp-dynamic-image-resizer example snippets


wp_get_attachment_image_src( $id, array( 400, 300, 1) );
wp_get_attachment_image( $id, array( 400, 300, 1) );

get_the_post_thumbnail( $postid, array( 400, 300, 1) );