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 […]

0

How to display image using a specific image style

Below is an example of how to use the “theme_image_style ($ variables)” function to get the HTML code of an image on which a specific style is applied:

This gives us the following result:

       

0