To get the URL of an image after applying a particular style on the original picture, it is very simple just use the function below :
1 |
image_style_url($style_name, $path) |
Here is an example to use this function :
1 |
<?php $picture_path = image_style_url('slideshow_galerie_photo', $field_galerie_photo['file']->uri); ?> |
So we get in the variable $ picture_path the url of the image on which we apply the […]