LogoLogo
BlogHelp CenterPrivacyLoginRegister
  • Let's optimize your images
  • Transformations
    • Input formats
    • Image operations
      • Width and height
      • Prevent enlargement
      • Crop
        • Automatic gravity crop
        • Positionable crop
        • Focal point crop
        • Face crop
        • Face hide
        • Aspect ratio crop
      • Fit
      • Cropfit
      • Bound
      • Boundmin
      • Cover
      • Device pixel ratio
      • Flip
      • Rotate
      • Trim
      • Rounded corners
      • Background removal
    • Image filters
      • Adjustment
        • Brightness
        • Contrast
        • Saturate
      • Color manipulation
        • Color overlay
        • Grayscale
        • Duotone
        • Sepia
        • Invert
      • Blur
      • Pixelate
      • Sharpen
      • Face blur
    • Image watermarking
      • Static watermark
      • Dynamic watermark
      • Text watermark
        • Text watermark fonts
    • Image compression
      • Image formats
      • Optipress
      • SVG compression
      • Color management
    • Static content
      • PDF to image
      • JS/CSS optimization
    • Video operations
  • Setup
    • Shortening URLs
      • Origin URL prefix
      • Aliases
      • Presets
      • Rules
    • Connecting storage bucket
      • Amazon S3
      • Google Cloud Storage
      • Microsoft Azure Blob
      • Basic authentication HTTP
    • Security
      • Token security
        • Domain whitelisting
        • URL signature
        • URL sealing
      • Account security
      • Origin security
  • Implementation
    • URL API implementation
    • Responsive images JS plugin
    • CMS plugins
      • Spryker
      • Drupal
      • Kontent.ai
      • Contentful
      • Adobe Commerce (Magento)
        • Basic implementation
        • Advanced implementation
      • Opencart
      • Prestashop
        • Prestashop tutorial
      • Shopware
      • Sylius
      • Wordpress
      • Shopify tutorial
        • Shopify integration
        • Theme files
        • FAQ
      • Commercetools tutorial
      • Ruby wrapper
    • Migrating from another image CDN
  • Caching and acceleration
    • CDN basics
    • Caching interval
    • Invalidation API
    • Warmup API
  • Analytics
    • Dashboards
      • Overview
      • Volumetry
      • Optimization
      • Delivery
      • Top-Ranking
      • RUM
      • Logs API
  • Cloudimage_v6 EOL
Powered by GitBook
LogoLogo

Resources

  • Help center
  • Contact support
  • Developers
  • cloudimage.io

Solutions

  • Media optimization
  • DAM
  • Performance report

Company

  • Blog
  • Service status
  • About us

Legal stuff

  • Terms & conditions
  • Privacy center
  • DMCA

Copyright © 2023 Scaleflex

On this page
  • Step 1. Configure aliases
  • Step 2. Construct your Cloudimage URLs

Was this helpful?

Export as PDF
  1. Setup
  2. Shortening URLs

Aliases

Use short pre-defined aliases for different origin servers

PreviousOrigin URL prefixNextPresets

Last updated 3 months ago

Was this helpful?

Aliases are a very easy way to hide parts of your URLs: They can be useful if your images come from different image repositories (for example: https://static.mycompany.com/bucket/img) and you do not wish these repositories to be publicly shown in your code. If you use only one repository for all your images, you can alternatively use Origin URL prefix.

With aliases, you can easily "mount" src0 to static.mycompany.com/bucket/img.

Step 1. Configure aliases

Log in to your Cloudimage admin console, navigate to Image settings, and scroll down to Aliases. Configure up to 10 aliases:

All aliases have to be prefixed and suffixed by underscores. Make sure there are no leading or trailing slashes. Please note that all aliases have to be unique for your account - aliases set in the alias section cannot be used in the Storage sections (see Connecting storage bucket).

Due to the specific way aliases are matched, it is required to use only specific aliases that are not contained in part of other alias strings.

Example: If you define an alias _demo_one_ then you should not have:

  • _demo_

  • _demo_one_two_

  • _my_demo_one_

As those would all be matched according to the first overlap (in this example, _demo_). An easy way to overcome this is by both prefixing and suffixing aliases with double underscores.

Step 2. Construct your Cloudimage URLs

Without Alias

With Aliases

//doc.cloudimg.io/http://sample.li/boat.jpg?width=800
//doc.cloudimg.io/_sample_/boat.jpg?width=800