Top menu

How to get the URL for an image style derivative

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 :

Here is an example to use this function :

So we get in the variable $ picture_path the url of the image on which we apply the “slideshow_galerie_photo” style

NB: This example is valid only for drupal 7

No comments yet.

Leave a Reply