image_style_url
returns the public url of an image in the files/styles
folder. Is it possible to create alias to that? What I want is the following:
Call image_style_url
from the image style and the uri, which gives me typical public url /sites/default/files/style/[style_name]/path/to/image/[image_file_name]
. I want to serve simple url like /image/[randomized_number]
to the user that will internally alias to the aforementioned public url. This is similar to asking what pathauto module does for /node/[nid]
, but for image styles.
Note that I do not want custom url to individual images per se, but rather a way to programmatically create unique unpredictable url aliases for image styles.
hook_menu_alter
... dunno.