PHP code example of deliciousbrains / wp-image-processing-queue
1. Go to this page and download the library: Download deliciousbrains/wp-image-processing-queue 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/ */
deliciousbrains / wp-image-processing-queue example snippets
Image_Processing_Queue\Queue::instance();
wp_queue()->cron();
echo ipq_get_theme_image( $post_id, array(
array( 600, 400, false ),
array( 1280, 720, false ),
array( 1600, 1067, false ),
),
array(
'class' => 'header-banner'
)
);
echo ipq_get_theme_image_url( $post_id, array( 600, 400, false ) );