All pages
Powered by GitBook
1 of 3

Loading...

Loading...

Loading...

Static content

Static file acceleration

func=proxy

Cloudimage offers you the option to deliver any file, including non-processable files - static content like JS or CSS files, via our Content Delivery Network.

By default, all URLs are regarded as images. To deliver a non-image file, you have to use the func=proxy option:

/samples.scaleflex.com/bootstrap.css?func=proxy

Cloudimage can automatically use the proxy function for all files that don't have an image file extension. This however will require all your images to have proper file extensions. If you prefer this behavior, you can switch it on in your Admin Console (Image Settings / Compression / Enable static Content acceleration):

Please note that PDF documents are always converted to images (for more info, please check the section). If you want to deliver PDF images as such, you need to use func=proxy:

JS/CSS optimization

Minification of JS and CSS files

process=minify-css process=minify-js

Cloudimage supports on-the-fly optimization of CSS and JS content to further facilitate faster loading of your website or web application.

Examples

(152 kB minified vs. 192 kB original)

(111 kB minified vs. 219 kB original)
/samples.scaleflex.com/bootstrap.css?func=proxy&process=minify-css
/samples.scaleflex.com/jquery.js?func=proxy&process=minify-js
PDF to image
/samples.scalflex.com/satie2.pdf?func=proxy

PDF to image

Convert a specific page from a PDF document to an image

doc_page=X

When you provide a link to a PDF file, the first page is converted to an image and delivered via CDN. You can use all available resizing operations, image filters, watermarking capabilities, and image compression formats. To convert a specific page of the PDF document, use the doc_page=X option:

Preview
Syntax

/samples.scaleflex.com/satie2.pdf?w=800&doc_page=2

/samples.scaleflex.com/satie2.pdf?w=800&force_format=png