API page: http://api.drupal.org/api/drupal/modules--image--image.module/function/i...

If your site uses a few locations, then image_style_url () constructs an incorrect URL to the style of the picture.
For example: a site with two language localization - Russian and English (language code - "ru" and "en"). All paths to the nodes contain the language code directly after the domain name - "domain.com\language code\path to the resource".
Function image_style_url() generates a path to the style of the picture and uses the url () in your body for this, which inserts into the path code location. As a result, the resulting path is not real. And sending pictures to client is not engaged in appach but code drupal!
Pictures and their styles are static resources. They do not need to specify a language code in the URL. It is very heavy and slow download resources from server .

Comments

W32’s picture

It is not good, but if uses file_create_url(image_style_path()) instead of image_style_url() than resulting URL is ok and not contains language code.