Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From bif to WP OTF #19

Open
Basilakis opened this issue Nov 22, 2015 · 1 comment
Open

From bif to WP OTF #19

Basilakis opened this issue Nov 22, 2015 · 1 comment

Comments

@Basilakis
Copy link

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
Copy link
Contributor

eoutvik commented Nov 23, 2015

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];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants