User Tools

Site Tools


nonapi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
nonapi [2022/08/06 17:58]
yves created
nonapi [2023/01/13 13:00]
yves [Barcode]
Line 6: Line 6:
 **/tile** Renders a square tile of a slide **/tile** Renders a square tile of a slide
 ^Parameter ^Description^ ^Parameter ^Description^
-|sessionID|The session id to authenticate with| +|**sessionID**|The session id to authenticate with| 
-|pathOrUid|The path or unique identifier of the image to render or a valid collection config JSON| +|**pathOrUid**|The path or unique identifier of the image to render or a valid collection config JSON| 
-|timeframe|The index of the time frame to render| +|**timeframe**|The index of the time frame to render| 
-|layer|The index of the layer to render| +|**layer**|The index of the layer to render| 
-|channels|Comma separated channel indexes to render| +|**channels**|Comma separated channel indexes to render| 
-|channelClipping|Min and max limits to clip and scale pixel values. Two values required per channel| +|**channelClipping**|Min and max limits to clip and scale pixel values. Two values required per channel| 
-|gamma|Gamma values for each channel. One value required per channel| +|**gamma**|Gamma values for each channel. One value required per channel| 
-|x|The x index of the tile| +|**x**|The x index of the tile| 
-|y|The y index of the tile| +|**y**|The y index of the tile| 
-|z|The z index of the tile|+|**z**|The z index of the tile|
 |cache|//​Optional//​ parameter that tells the renderer whether or not to use the cache to fetch the tile| |cache|//​Optional//​ parameter that tells the renderer whether or not to use the cache to fetch the tile|
 |format|//​Optional//​ resulting image format. Valid values are JPG, JPEG and PNG| |format|//​Optional//​ resulting image format. Valid values are JPG, JPEG and PNG|
Line 23: Line 23:
 |contrast|//​Optional//​ contrast value to apply as post processing| |contrast|//​Optional//​ contrast value to apply as post processing|
 **Returns** A file stream that contains the rendered region **Returns** A file stream that contains the rendered region
 +
 +**Example** ///​tile?​sessionId=%%sessionId%%&​pathOrUid=%%path%%&​timeframe=0&​layer=0&​channels=0&​channelClipping=0,​0&​gamma=1&​x=0&​y=0&​z=0//​
  
 ==== Region ==== ==== Region ====
 **/region** Renders a region of a slide **/region** Renders a region of a slide
 ^Parameter ^Description^ ^Parameter ^Description^
-|sessionID|The session id to authenticate with| +|**sessionID**|The session id to authenticate with| 
-|pathOrUid|The path or unique identifier of the image to render| +|**pathOrUid**|The path or unique identifier of the image to render| 
-|timeframe|The index of the time frame to render| +|**timeframe**|The index of the time frame to render| 
-|layer|The index of the layer to render| +|**layer**|The index of the layer to render| 
-|channels|Comma separated channel indexes to render| +|**channels**|Comma separated channel indexes to render| 
-|x|The x coordinate of the image to render| +|**x**|The x coordinate of the image to render| 
-|y|The y coordinate of the image to render| +|**y**|The y coordinate of the image to render| 
-|width|The width of the region to render| +|**width**|The width of the region to render| 
-|height|The height of the region to render| +|**height**|The height of the region to render| 
-|scale|The factor to scale the rendered region by| +|**scale**|The factor to scale the rendered region by| 
-|channelClipping|Min and max limits to clip and scale pixel values. Two values required per channel.| +|**channelClipping**|Min and max limits to clip and scale pixel values. Two values required per channel.| 
-|gamma|Gamma values for each channel. One value required per channel | +|**gamma**|Gamma values for each channel. One value required per channel | 
-|drawScaleBar|Draw an accurate scale bar| +|drawScaleBar|//​Optional// ​Draw an accurate scale bar| 
-|downloadInsteadOfDisplay|Whether or not to download the image or display it in the browser| +|downloadInsteadOfDisplay|//​Optional// ​Whether or not to download the image or display it in the browser| 
-|drawFilename|0 do not draw, 1 draw filename on top, 2 draw on bottom|+|drawFilename|//​Optional// ​0 do not draw, 1 draw filename on top, 2 draw on bottom|
 |format|//​Optional//​ parameter representing the resulting image format. Valid values are JPG, JPEG and PNG| |format|//​Optional//​ parameter representing the resulting image format. Valid values are JPG, JPEG and PNG|
 |quality|//​Optional//​ quality parameter used only for the jpeg format| |quality|//​Optional//​ quality parameter used only for the jpeg format|
-|annotationsLayerType|A comma separated list of extra annotations layer to render| +|annotationsLayerType|//​Optional// ​A comma separated list of extra annotations layer to render| 
-|rotation|Rotation angle in degrees| +|rotation|//​Optional// ​Rotation angle in degrees| 
-|flipHorizontal|Whether to flip region horizontally| +|flipHorizontal|//​Optional// ​Whether to flip region horizontally| 
-|flipVertical|Whether to flip the region vertically|+|flipVertical|//​Optional// ​Whether to flip the region vertically|
 |dpi|//​Optional//​ dpi to resolution for the exported image| |dpi|//​Optional//​ dpi to resolution for the exported image|
 |postGamma|//​Optional//​ gamma value to apply as post processing| |postGamma|//​Optional//​ gamma value to apply as post processing|
Line 53: Line 55:
 |contrast|//​Optional//​ contrast value to apply as post processing| |contrast|//​Optional//​ contrast value to apply as post processing|
 **Returns** A file stream that contains the rendered region **Returns** A file stream that contains the rendered region
 +
 +**Example** ///​region?​sessionId=%%sessionId%%&​pathOrUid=%%path%%&​timeframe=0&​layer=0&​channels=0&​channelClipping=0,​0&​gamma=1&​x=0&​y=0&​width=1000&​height=1000//​
  
 ==== Thumbnail ==== ==== Thumbnail ====
 **/​thumbnail** Renders the associated thumbnail of slide **/​thumbnail** Renders the associated thumbnail of slide
 ^Parameter ^Description^ ^Parameter ^Description^
-|sessionID|The session id to authenticate with| +|**sessionID**|The session id to authenticate with| 
-|pathOrUid|The path or unique identifier of the image to render| +|**pathOrUid**|The path or unique identifier of the image to render| 
-|orientation|The orientation of the thumbnail (0 = auto; 1 = vertical; 2 = horizontal)| +|orientation|//​Optional// ​The orientation of the thumbnail (0 = auto; 1 = vertical; 2 = horizontal)| 
-|w|Expected output width of the thumbnail| +|w|//​Optional// ​Expected output width of the thumbnail| 
-|h|Expected output height of the thumbnail|+|h|//​Optional// ​Expected output height of the thumbnail|
 **Returns** An image **Returns** An image
 +
 +
 +**Example** ///​thumbnail?​sessionId=%%sessionId%%&​pathOrUid=%%path%%//​
  
 ==== Macro ==== ==== Macro ====
Line 68: Line 75:
  
 ^Parameter ^Description^ ^Parameter ^Description^
-|sessionID|The session id to authenticate with| +|**sessionID**|The session id to authenticate with| 
-|pathOrUid|The path or unique identifier of the image to render| +|**pathOrUid**|The path or unique identifier of the image to render| 
-|orientation|The orientation of the macro (0 = auto; 1 = vertical; 2 = horizontal)| +|orientation|//​Optional// ​The orientation of the macro (0 = auto; 1 = vertical; 2 = horizontal)| 
-|w|Expected output width of the macro| +|w|//​Optional// ​Expected output width of the macro| 
-|h|Expected output height of the macro|+|h|//​Optional// ​Expected output height of the macro|
 **Returns** An image **Returns** An image
 +
 +**Example** ///​macro?​sessionId=%%sessionId%%&​pathOrUid=%%path%%//​
  
 ==== Barcode ==== ==== Barcode ====
-**/​barcode** Renders the associated barcode of a slide+**/​barcode** Renders the associated ​[[barcodes|barcode]] of a slide
 ^Parameter ^Description^ ^Parameter ^Description^
-|sessionID|The session id to authenticate with| +|**sessionID**|The session id to authenticate with| 
-|pathOrUid|The path or unique identifier of the image to render| +|**pathOrUid**|The path or unique identifier of the image to render| 
-|orientation|The orientation of the barcode (0 = auto; 1 = vertical; 2 = horizontal)| +|orientation|//​Optional// ​The orientation of the barcode (0 = auto; 1 = vertical; 2 = horizontal)| 
-|w|Expected output width of the barcode| +|w|//​Optional// ​Expected output width of the barcode| 
-|h|Expected output height of the barcode|+|h|//​Optional// ​Expected output height of the barcode|
 **Returns** An image **Returns** An image
 +
 +**Example** ///​barcode?​sessionId=%%sessionId%%&​pathOrUid=%%path%%//​
nonapi.txt · Last modified: 2023/01/13 13:00 by yves