Hello!
I like to get the public "node gallery thumbnail url" of an image file, which is in an private gallery.
I have the fid and the nid of the image file node, which is connected to a certain gallery.
All I want is to get the public url like:
https://example.com/system/files/styles/node_gallery_thumbnail/private/I...

The problem is the ok token, which I cannot find.

Thank you.

Comments

schulle@web.de’s picture

Status: Active » Closed (works as designed)

You have to use

$path = "private://IMAGE.JPG";
$url = image_style_url('node_gallery_thumbnail',$path);

where the path is the path from the file managed table!