I see the following message in reports when I try to use the image_style_url function on an image: "Cannot generate a derived image located in public: // ..."
I made sure the directory is owned by Apache and I have no problem attaching images to upload to other sites.
The style name "template" was configured in the "Image Styles" menu in the Drupal admin panel.
When the function is called, the URL of the image is returned, but the image is not displayed because the image is not created by the server.
Does anyone have any ideas on how I can fix this problem?
I just print image_style_url, where "thumbnail" is the name assigned to the image style created in the admin area.
$img_url = $node->field_image[0]['uri']; print image_style_url("thumbnail", $img_url);
source share