Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22420513
image-router.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
448 B
Referenced Files
None
Subscribers
None
image-router.ts
View Options
import
{
KoaResponsiveImageRouter
}
from
"koa-responsive-image-router"
;
import
{
IMAGE_CACHE_FS_DIR
,
SMARTCROP_CACHE_FS_DIR
}
from
"./config.js"
;
export
const
RESPONSIVE_IMAGES_URL_PATH
=
"/images"
;
export
const
imageRouter
=
new
KoaResponsiveImageRouter
({
staticPath
:
RESPONSIVE_IMAGES_URL_PATH
,
thumbnailSize
:
20
,
cacheManagerResolutionThreshold
:
50
,
imageStoragePath
:
IMAGE_CACHE_FS_DIR
,
smartCropStoragePath
:
SMARTCROP_CACHE_FS_DIR
,
});
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sat, Nov 28, 02:44 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1226941
Default Alt Text
image-router.ts (448 B)
Attached To
Mode
rPLAY Sealious playground
Attached
Detach File
Event Timeline