I've found image_style images rendered just as absolute links. URL could be just converted into relative path but those images coudl be absent as they are generating only on first browser query to that URL (see: theme_image_formatter() -> image_style_url()).

I've created patch which converts public images URLs and call image generating process.
I think it could be improved by 'private' images processing and, even, remote images handling by 'drupal_http_request()'.

Comments

vadym.kononenko’s picture

JFI: https://www.drupal.org/node/2183955 - could be united.

vadym.kononenko’s picture

Patch was updated to use new 'file_public_schema' variable added in near Drupal 7 release: https://www.drupal.org/drupal-7.36-release-notes

vadym.kononenko’s picture

Updated to 'mimemail-7.x-1.0-beta4' code-base.

vadym.kononenko’s picture

Fixed public folder search logic.

vadym.kononenko’s picture

$is_web_local_url verification was restored to ensure URL can be handled as just a file after image generation.

vadym.kononenko’s picture

Using 'file_default_scheme()' instead of hardcoded 'public' schema name.

Status: Needs review » Needs work

The last submitted patch, 6: mimemail--convert-local-url-into-file-path7.patch, failed testing. View results