Drupal 7 – Get the image style file path

We can easily get the image style file path by image_style_url(). What you need is the image style name and the image uri.

image_style_url('<image-style>', <image-uri>);

 

Done =)

Reference:

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.