Get image path
Action path return RS image path (for the highest available resolution by default). This action returns image path only (src), without any metadata.
This action uses the get_resource_path RS API.
[[!xrs?
&action=`path`
&rsid=`198`
&tpl=`debug`
]]
Snippet options
Option | Values | Default / Notes |
---|---|---|
action | path | |
rsid | numeric | id of xrs image (ref) |
tpl |
debug none |
Example (debug)
Debug mode exposes the URL equivalent to the POST query to see the RS API response.
[[!xrs?
&action=`path`
&rsid=`318`
&tpl=`debug`
]]
Result
Debug mode ON
Response:https://photoarchives.jpdn.net/filestore/3/1/8_f884c0f59823fe2/318_93b3d34359a76a9.jpg
Basic example
Output path onlyn, pThumb resizing is not used.
[[!xrs?
&action=`path`
&rsid=`198`
]]
Result
https://photoarchives.jpdn.net/filestore/1/9/8_015df4b6333b3c3/198_d223e0a299cd558.jpgBasic example (thm RS size)
This example output image path for the ResourceSpace size thm, pThumb resizing is not used.
[[!xrs?
&action=`path`
&rsid=`198`
&rssize=`thm`
]]