Why does asset creation not work for hidden images?
Set generateTransformsBeforePageLoad in your config/general.php file.

'generateTransformsBeforePageLoad' =&gt; true,



  Configures Craft to generate new image transforms right when getUrl()
  is called, rather than when the browser first requests the image.