Coder Social home page Coder Social logo

optipic-io / optipic-modx Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 30 KB

MODX plugin to integrate with OptiPic.io (automatic images optimization and compression service)

Home Page: https://optipic.io/webp/modx/

PHP 100.00%
compression optimization minify webp modx modx-revolution modx-extra pagespeed google-pagespeed-insights speedup

optipic-modx's Introduction

WebP convert images MODx in 2 clicks - OptiPic CDN ready plugin

Fully automated process for converting all png and jpeg images to WebP format to the requirements of Google Pagespeed Insights.
Solves the problem "Serve images in next-gen formats".
Easy connection to MODx.

| English | Español | Deutsch | Türk | Français | Italiano | Português | Polski | Čeština | Русский | Беларуская | ** | 日本 | বেঙ্গল | 한국인 |

https://optipic.io/en/webp/modx/

Download

How to convert to WebP all the images on the MODx

CDN OptiPic — simple solution to the problem "Serve images in next-gen formats"

Smart WebP convertation on the fly

What does OptiPic CDN do when trying to request an image from it:

  • Returns the WebP version of the image (if the browser supports WebP format)
  • Returns a compressed version without webp (if the browser does not support WebP)
  • Makes responsive to mobile screens (if the image is opened from a mobile)
  • Caches and speeds up loading reducing the load from your hosting
  • Protects your images preserving copyright by EXIF and IPTC tags
  • Use your own domain name to load images from img.domain.com, etc
  • Lazy load images Images load as you scroll through the pages

Convertation to Webp and image compression occurs in the background and does not slow down the opening of images on the browser. If the optimized version is not yet ready at the time of the image request, the original version is returned without any processing.

Download

Video instruction for configuring the module MODx

Video instruction for configuring the module MODx

5 easy steps to connect WebP to MODx

Step #1: Download plugin MODx WebP

Download and install the official CDN OptiPic plugin for MODx on your site.

Step #2: Sign up for OptiPic CDN

Register in your OptiPic CDN account and add a new site to your CDN control panel. Step 1

Step #3: Copy site ID

Copy the ID of the created website to the clipboard (Ctrl + C) Step 1

Step #4: Paste the site ID into the plugin MODx WebP

Go to the settings page of the previously installed plugin on your site. Paste the copied site ID into the corresponding settings field.

Step #5: Save your settings

Save plugin settings. Clear the cache in the control panel MODx. Change other plugin settings if necessary

Description of plugin settings

  • Site ID in your personal account CDN OptiPic
    You can find out your website ID in your CDN OptiPic personal account. 
    Add your site to your account if you have not already done so. 
    To turn off auto-fidelity, just clear the site ID.
    
  • Domain list (if images are loaded via absolute URL)

    Each on a new line and without specifying the protocol (http/https).
    Examples:
    mydomain.com
    www.mydomain.com
    
  • Site pages that do not include auto-replace

    Each on a new line and must start with a slash (/)
    
  • Replace only URLs of images starting with a mask

    Each on a new line and must start with a slash (/)
    Examples:
    /upload/
    /upload/test.jpeg
    
  • List of 'srcset' attributes

    List of tag attributes, in which you need to replace srcset-markup of images
    What is srcset? 
    Examples: 
    srcset 
    data-srcset 
    
  • CDN domain

    Domain through which CDN OptiPic will work. 
    You can use your subdomain (img.yourdomain.com, optipic.yourdomain.com, etc.) instead of the standard cdn.optipic.io. 
    To connect your subdomain, contact OptiPic technical support.
    

optipic-modx's People

Contributors

optipic-io avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.