Skip to main content
added 26 characters in body
Source Link
Yuseferi
  • 22.2k
  • 22
  • 118
  • 218

According to theme_image_style page you tried wrong parameters,

as an example, your code should be something like the following snippet

$variables = array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
        'width' => $image_fields[LANGUAGE_NONE][0]['width'],
        'height' => $image_fields[LANGUAGE_NONE][0]['height']
);
print$thumbnail_image = theme_image_style($variables);

and in short

print$thumbnail_image = theme('image_style', array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
));

According to theme_image_style page you tried wrong parameters,

as an example, your code should be something like the following snippet

$variables = array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
        'width' => $image_fields[LANGUAGE_NONE][0]['width'],
        'height' => $image_fields[LANGUAGE_NONE][0]['height']
);
print theme_image_style($variables);

and in short

print theme('image_style', array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
));

According to theme_image_style page you tried wrong parameters,

as an example, your code should be something like the following snippet

$variables = array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
        'width' => $image_fields[LANGUAGE_NONE][0]['width'],
        'height' => $image_fields[LANGUAGE_NONE][0]['height']
);
$thumbnail_image = theme_image_style($variables);

and in short

$thumbnail_image = theme('image_style', array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
));
added 169 characters in body
Source Link
Yuseferi
  • 22.2k
  • 22
  • 118
  • 218

According to theme_image_style page you tried wrong parameters,

as an example, your code should be something like the following snippet

$variables = array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
        'width' => $image_fields[LANGUAGE_NONE][0]['width'],
        'height' => $image_fields[LANGUAGE_NONE][0]['height']
);
print theme_image_style($variables);

and in short

print theme('image_style', array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
));

According to theme_image_style page you tried wrong parameters,

as an example, your code should be something like the following snippet

$variables = array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
        'width' => $image_fields[LANGUAGE_NONE][0]['width'],
        'height' => $image_fields[LANGUAGE_NONE][0]['height']
);
print theme_image_style($variables);

According to theme_image_style page you tried wrong parameters,

as an example, your code should be something like the following snippet

$variables = array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
        'width' => $image_fields[LANGUAGE_NONE][0]['width'],
        'height' => $image_fields[LANGUAGE_NONE][0]['height']
);
print theme_image_style($variables);

and in short

print theme('image_style', array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
));
Source Link
Yuseferi
  • 22.2k
  • 22
  • 118
  • 218

According to theme_image_style page you tried wrong parameters,

as an example, your code should be something like the following snippet

$variables = array(
        'style_name' => 'thumbnail',
        'path' => $image_fields[LANGUAGE_NONE][0]['uri'],
        'width' => $image_fields[LANGUAGE_NONE][0]['width'],
        'height' => $image_fields[LANGUAGE_NONE][0]['height']
);
print theme_image_style($variables);