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
  • Defining presets
  • Using presets
  • Examples
  • Extending presets

Was this helpful?

Export as PDF
  1. Setup
  2. Shortening URLs

Presets

Save combinations of commonly used parameters in presets

PreviousAliasesNextRules

Last updated 1 year ago

Was this helpful?

p=X

If you wish to apply the same transformations on many images, you can define presets and apply transformations only using the preset name (X).

All Image operations and Image filters can be included in a preset, as well as Image watermarking and Image compression parameters.

Defining presets

You can define your presets in the admin panel, Image Settings / Presets.

Using presets

Examples

Preset name
Operations and filters

gallery_thumb

w=250&h=250&gray=1

gallery_medium

w=450&h=300&radius=10&force_format=jpeg&q=85

gallery_large

w=1200&force_format=jpeg&optipress=2&wat=1&wat_gravity=northwest&wat_scale=60&wat_pad=20&wat_opacity=0.4

Here are a couple of images using the sample presets shown above.

Preview
Syntax

Extending presets

You can use additional operations together with a preset. Here is an example:

Preset name
Operations and filters

red_ref_number

w=400&h=200&wat=1&wat_gravity=northeast&wat_pad=10&wat_font=Arial-Black&wat_fontsize=18&wat_colour=660000

Here are a couple of examples of how you can extend the presets from above:

Preview
Syntax

Please note that an operation defined in any given preset cannot be overridden in the URL. For example, if a preset named small_img contains w=200, using /original_image_url?p=small_img&w=400 will still yield a 200-pixel-wide image.

/sample.li/birds.jpg?p=gallery_thumb
/sample.li/birds.jpg?p=gallery_medium
/sample.li/birds.jpg?p=gallery_large
/sample.li/flat1.jpg?p=red_ref_number&wat_text=label1
/sample.li/paris.jpg?p=red_ref_number&wat_text=label2