gambitph / WP-OTF-Regenerate-Thumbnails

Automatically regenerates your thumbnails on the fly when thumbnail sizes change.
https://wordpress.org/plugins/otf-regenerate-thumbnails/
GNU General Public License v2.0
77 stars 16 forks source link

From bif to WP OTF #19

Open Basilakis opened 8 years ago

Basilakis commented 8 years ago

Hello,

could you please offer a hand of help :-)

  $image_src_array = wp_get_attachment_image_src( $image_id, 'full', true);

  $image_src = bfi_thumb($image_src_array[0], array(
      'width' => $width * $image_quality,
      'height' => $height * $image_quality
  ));

on something like that, how can the convertion work?

Thank u.

eoutvik commented 8 years ago

Just use the default wordpress functions like:

$image_src_array = wp_get_attachment_image_src( $image_id, array($width, $height));

$img_src = $image_src_array[0];