Dashboard Image Content Provider
Docs HomeDashboard plugins and apps
1.3.0
1.3.0
  • About
  • Changelog
  • Admin
  • Config
    • Default config
  • Developer
    • Develop with ICP
Powered by GitBook
On this page

Was this helpful?

  1. Config

Default config

{
    "${DBKS:ICP_PROVIDER}": {
        "type": "imengine",
        "endpoint": "${DBKS:IMENGINE_EDITORIAL_URL}",
        "functions": {
            "default": {
                "template": "uuid=[identifier]&type=[type:preview]&function=hardcrop&width=[width]&height=[height]&q=80"
            },
            "crop": {
                "template": "uuid=[identifier]&type=[type:preview]&function=thumbnail&width=[width]&height=[height]&q=80"
            },
            "noCrop": {
                "template": "uuid=[identifier]&type=[type:preview]&function=cover&width=[width]&height=[height]&q=80"
            },
            "fullSize": {
                "template": "uuid=[identifier]&type=[type:primary]&function=original&q=80"
            }
        }
    },
    "writer": {
        "type": "imengine",
        "endpoint": "${DBKS:IMENGINE_EDITORIAL_URL}",
        "functions": {
            "default": {
                "template": "uuid=[identifier]&type=[type:preview]&function=hardcrop&width=[w:auto]&q=[q:75]"
            },
            "crop": {
                "template": "uuid=[identifier]&type=[type:preview]&function=hardcrop&width=[w]&height=[h]&q=[q:75]"
            },
            "crop-resize": {
                "template": "uuid=[identifier]&function=cropresize&type=preview&q=75&crop_w=[cwrel]&crop_h=[chrel]&width=[w:auto]&height=[h:auto]&x=[cxrel:0]&y=[cyrel:0]&zoom=0"
            }
        }
    }
}
PreviousConfigNextDevelop with ICP

Last updated 3 years ago

Was this helpful?