When using Add media button in wysiwyg+tinymce and image is uploaded/chosen, there is a drop-down box with formats: Link, Preview, Large, Original. Large is default and when it's used, the url is like http://localhost/sites/default/files/styles/large/public/file.jpg which doesn't exist. If Original is used, the url works as expected.

Since this is default behaviour, it's a kind of bug unless it's documented and solution for immediate style generation is provided. Where is this documentation? And why not just simply set Original as default?

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

Drupal's image styles require at least one initial request to generate an image style derivative. When you reload the page does http://localhost/sites/default/files/styles/large/public/file.jpg suddenly work?

ogi’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

It turns out that 404 HTTP error wasn't handled by my Drupal and so images were not generated. This is a hard requirement for image module to work so I documented it in flushing section of http://drupal.org/documentation/modules/image