Plugin Directory

Changeset 2785283


Ignore:
Timestamp:
09/15/2022 11:29:49 AM (3 years ago)
Author:
imageengine
Message:

new logo, client hints/permissions policy fixes

Location:
image-cdn/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • image-cdn/trunk/assets/logo.svg

    r2601861 r2785283  
    1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1232.75 430.81"><defs><style>.cls-1{fill:#006cb1;}.cls-2{fill:#333c42;}</style></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M373.13,22.16V50.33a6,6,0,0,1-6,6H322.79a6,6,0,0,1-6-6V23.2A204.63,204.63,0,0,0,196.64,88.28h.24a6.94,6.94,0,0,1,6.94,6.94v41.7c0,2.44.55,10,5,13.87,4.24,3.66,10.11,4.19,12.42,4.25h56.6a8.46,8.46,0,0,1,8.46,8.45v62.77a8.45,8.45,0,0,1-8.46,8.45H215.11a8.45,8.45,0,0,1-8.45-8.45V168.17A14.29,14.29,0,0,0,193.09,154a20.69,20.69,0,0,0-2.78-.31H156.77a204.59,204.59,0,0,0-13.05,72.11c0,113.25,91.8,205.05,205.05,205.05s205.05-91.8,205.05-205C553.82,120.76,474.89,34.21,373.13,22.16Zm-87.37,90H256.43a4,4,0,0,1-4-4V78.87a4,4,0,0,1,4-4h29.33a4,4,0,0,1,3.95,4V108.2A4,4,0,0,1,285.76,112.15ZM228.08,300a4,4,0,0,1-4,3.95H194.8a4,4,0,0,1-4-3.95V270.64a4,4,0,0,1,4-3.95h29.33a4,4,0,0,1,4,3.95Zm83.41,72.9a6,6,0,0,1-6,6H261.16a6,6,0,0,1-6-6V328.51a6,6,0,0,1,6-6h44.36a6,6,0,0,1,6,6Zm88.75-294a4,4,0,0,1,3.95-4h29.33a4,4,0,0,1,4,4V108.2a4,4,0,0,1-4,4H404.19a4,4,0,0,1-3.95-4ZM375.83,300a4,4,0,0,1-3.95,3.95H342.55A4,4,0,0,1,338.6,300V270.64a4,4,0,0,1,3.95-3.95h29.33a4,4,0,0,1,3.95,3.95Zm77.49-70.65a5.39,5.39,0,0,1-5.39,5.39h-40a5.39,5.39,0,0,1-5.39-5.39V209.79A46,46,0,0,0,358.74,164h-9.82a4,4,0,0,1-3.95-3.95V130.75a4,4,0,0,1,3.95-4h29.33a4,4,0,0,1,3.95,4v7.34A46,46,0,0,0,428,183.89h19.92a5.39,5.39,0,0,1,5.39,5.4Zm-263.13-173H145.83a6,6,0,0,1-6-6V6a6,6,0,0,1,6-6h44.36a6,6,0,0,1,6,6V50.33A6,6,0,0,1,190.19,56.31ZM104.63,303.92H75.3a4,4,0,0,1-4-3.95V270.64a4,4,0,0,1,4-3.95h29.33a4,4,0,0,1,4,3.95V300A4,4,0,0,1,104.63,303.92Zm0-191.77H75.3a4,4,0,0,1-4-4V78.87a4,4,0,0,1,4-4h29.33a4,4,0,0,1,4,4V108.2A4,4,0,0,1,104.63,112.15ZM103,183.89H83.05a46,46,0,0,1-45.82-45.8v-7.34a4,4,0,0,0-3.95-4H4a4,4,0,0,0-3.95,4v29.33A4,4,0,0,0,4,164h9.82A46,46,0,0,1,57.53,209.8v1.69h0v17.83a5.39,5.39,0,0,0,5.39,5.39h40a5.39,5.39,0,0,0,5.39-5.39v-40A5.39,5.39,0,0,0,103,183.89Z"/><path class="cls-2" d="M636.55,208.68V86.47h27.37V208.68Z"/><path class="cls-2" d="M702.64,86.47h25l38,52.67L804,86.47h25V208.68H801.45V133.46l-35.63,49.23L730,133.29v75.39H702.64Z"/><path class="cls-2" d="M854.63,208.68,907,86.47h24.78l52.33,122.21H955.5l-10.85-25.82h-50.6L883.2,208.68Zm64.72-86.23-15.49,36.66h30.81Z"/><path class="cls-2" d="M1062,210.75q-28.05,0-46.3-18.25T997.5,147.58q0-26.69,18.24-44.93t46-18.24a63.48,63.48,0,0,1,35.11,10.32,54.62,54.62,0,0,1,22.38,27.89h-31.5q-9.12-11.7-26-11.71-16.53,0-26.59,10.5T1025,147.58q0,15.66,10.15,26.16t26.85,10.5q27,0,31.67-23.93H1058.6V134.67h63.52q2.24,18.77-1.64,33.65t-12.39,23.92A56.44,56.44,0,0,1,1087.86,206,68.17,68.17,0,0,1,1062,210.75Z"/><path class="cls-2" d="M1155.16,208.68V86.47h77.46v26.16h-50.09v21.86h39.76v26.17h-39.76v21.86h50.09v26.16Z"/><path class="cls-2" d="M636.55,344.64V240.17h62.83v16.48H653.76v26.78h36.79v16.48H653.76v28.25h45.62v16.48Z"/><path class="cls-2" d="M821.36,344.64h-15l-58.86-75.19v75.19H730.28V240.17h15l58.71,75v-75h17.37Z"/><path class="cls-2" d="M906,346.41q-23.4,0-39-15.53t-15.6-38.47q0-22.95,15.53-38.48t38.91-15.52a53.17,53.17,0,0,1,30.76,9.27q13.53,9.27,18.68,23.39H935.68a30.47,30.47,0,0,0-12.14-11.62A36.15,36.15,0,0,0,905.81,255q-16.18,0-26.63,10.75t-10.45,26.63q0,15.88,10.45,26.63T906,329.78q14.26,0,23.4-8.24t10.88-21.78H904.49V283.58H957.9q2.79,29.13-12.43,46T906,346.41Z"/><path class="cls-2" d="M988.36,344.64V240.17h17.21V344.64Z"/><path class="cls-2" d="M1133.29,344.64h-15l-58.86-75.19v75.19h-17.21V240.17h15l58.7,75v-75h17.37Z"/><path class="cls-2" d="M1169.93,344.64V240.17h62.82v16.48h-45.61v26.78h36.78v16.48h-36.78v28.25h45.61v16.48Z"/></g></g></svg>
     1<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1232.7 430.85"><defs><style>.cls-1{fill:#4636b3;}.cls-2{fill:#333c42;}</style></defs><g id="Layer_2"><g id="Layer_1-2"><path class="cls-1" d="M373.08,22.16v28.17c0,3.31-2.69,6-6,6h-44.34c-3.31,0-6-2.69-6-6V23.2c-46.32,7.29-88.74,30.26-120.15,65.08h.24c3.83,0,6.94,3.11,6.94,6.94h0v41.7c0,2.44,.55,10,5,13.87,4.24,3.66,10.11,4.19,12.42,4.25h56.6c4.67,0,8.45,3.78,8.46,8.45v62.77c0,4.67-3.78,8.45-8.45,8.45h-62.74c-4.67,0-8.45-3.78-8.45-8.45v-58.09c-.05-7.57-6.01-13.79-13.57-14.17-.92-.17-1.85-.27-2.78-.31h-33.54c-8.65,23.06-13.08,47.48-13.05,72.11,0,113.25,91.8,205.05,205.05,205.05s205.05-91.8,205.05-205c0-105.09-78.93-191.64-180.69-203.69Zm-87.37,90h-29.33c-2.21,0-4-1.79-4-4v-29.29c0-2.21,1.79-4,4-4h29.33c2.19,.03,3.95,1.81,3.95,4v29.33c-.03,2.17-1.78,3.92-3.95,3.95h0Zm-57.68,187.85c-.03,2.19-1.81,3.95-4,3.95h-29.28c-2.19,0-3.97-1.76-4-3.95v-29.36c.03-2.19,1.81-3.95,4-3.95h29.33c2.19,0,3.97,1.76,4,3.95l-.05,29.36Zm83.41,72.9c0,3.31-2.69,6-6,6h-44.33c-3.31,0-6-2.69-6-6v-44.39c0-3.31,2.69-6,6-6h44.36c3.31,0,6,2.69,6,6l-.03,44.39ZM400.19,78.9c0-2.19,1.76-3.97,3.95-4h29.33c2.21,0,4,1.79,4,4v29.3c0,2.21-1.79,4-4,4h-29.33c-2.19-.03-3.95-1.81-3.95-4v-29.3Zm-24.41,221.1c-.03,2.17-1.78,3.92-3.95,3.95h-29.33c-2.17-.03-3.92-1.78-3.95-3.95v-29.36c.03-2.17,1.78-3.92,3.95-3.95h29.33c2.17,.03,3.92,1.78,3.95,3.95v29.36Zm77.49-70.65c0,2.98-2.41,5.39-5.39,5.39h-40c-2.98,0-5.39-2.41-5.39-5.39h0v-19.56c-.08-24.49-19.34-44.62-43.8-45.79h-9.82c-2.17-.03-3.92-1.78-3.95-3.95v-29.3c0-2.19,1.76-3.97,3.95-4h29.33c2.19,.03,3.95,1.81,3.95,4v7.34c.11,25.25,20.55,45.69,45.8,45.8h19.92c2.98,0,5.39,2.41,5.39,5.39h0v40.07ZM190.14,56.35h-44.36c-3.31,0-6-2.69-6-6V6c0-3.31,2.69-6,6-6h44.36c3.31,0,6,2.69,6,6V50.33c-.01,3.31-2.69,5.98-6,5.98v.04Zm-85.56,247.57h-29.33c-2.19,0-3.97-1.76-4-3.95v-29.33c.03-2.19,1.81-3.95,4-3.95h29.33c2.19,0,3.97,1.76,4,3.95v29.36c-.04,2.18-1.82,3.92-4,3.92Zm0-191.77h-29.33c-2.21,0-4-1.79-4-4v-29.28c0-2.21,1.79-4,4-4h29.33c2.21,0,4,1.79,4,4v29.33c-.03,2.19-1.81,3.95-4,3.95Zm-1.63,71.74h-19.95c-25.26-.1-45.71-20.54-45.82-45.8v-7.34c0-2.19-1.76-3.97-3.95-4H3.95C1.76,126.78,0,128.56,0,130.75v29.33c.04,2.16,1.79,3.89,3.95,3.92H13.77c24.43,1.22,43.63,21.34,43.71,45.8v1.69h0v17.83c0,2.98,2.41,5.39,5.39,5.39h40c2.98,0,5.39-2.41,5.39-5.39v-40c.02-2.96-2.35-5.39-5.31-5.43Z"/><path class="cls-2" d="M636.5,208.68V86.47h27.37v122.21h-27.37Z"/><path class="cls-2" d="M702.59,86.47h25l38,52.67,38.36-52.67h25v122.21h-27.55v-75.22l-35.63,49.23-35.82-49.4v75.39h-27.36V86.47Z"/><path class="cls-2" d="M854.58,208.68l52.37-122.21h24.78l52.33,122.21h-28.61l-10.85-25.82h-50.6l-10.85,25.82h-28.57Zm64.72-86.23l-15.49,36.66h30.81l-15.32-36.66Z"/><path class="cls-2" d="M1061.95,210.75c-18.7,0-34.13-6.08-46.3-18.25-12.17-12.17-18.23-27.14-18.2-44.92,0-17.79,6.08-32.77,18.24-44.93,12.16-12.16,27.49-18.24,46-18.24,12.46-.08,24.67,3.51,35.11,10.32,10.38,6.52,18.26,16.35,22.38,27.89h-31.5c-6.08-7.8-14.75-11.7-26-11.71-11.02,0-19.88,3.5-26.59,10.5-6.71,7-10.09,15.72-10.14,26.17,0,10.44,3.38,19.16,10.15,26.16,6.77,7,15.72,10.5,26.85,10.5,18,0,28.56-7.98,31.67-23.93h-35.07v-25.64h63.52c1.49,12.51,.95,23.73-1.64,33.65-2.59,9.92-6.72,17.89-12.39,23.92-5.66,6.01-12.56,10.71-20.23,13.76-8.23,3.25-17.01,4.86-25.86,4.75Z"/><path class="cls-2" d="M1155.11,208.68V86.47h77.46v26.16h-50.09v21.86h39.76v26.17h-39.76v21.86h50.09v26.16h-77.46Z"/><path class="cls-2" d="M636.5,344.64v-104.47h62.83v16.48h-45.62v26.78h36.79v16.48h-36.79v28.25h45.62v16.48h-62.83Z"/><path class="cls-2" d="M821.31,344.64h-15l-58.86-75.19v75.19h-17.22v-104.47h15l58.71,75v-75h17.37v104.47Z"/><path class="cls-2" d="M905.95,346.41c-15.6,0-28.6-5.18-39-15.53s-15.6-23.18-15.6-38.47c0-15.3,5.18-28.13,15.53-38.48,10.35-10.35,23.32-15.53,38.91-15.52,10.96-.16,21.71,3.08,30.76,9.27,9.02,6.18,15.25,13.98,18.68,23.39h-19.6c-2.88-4.93-7.08-8.96-12.14-11.62-5.43-2.98-11.54-4.51-17.73-4.45-10.79,0-19.66,3.58-26.63,10.75s-10.45,16.04-10.45,26.63,3.48,19.46,10.45,26.63,15.91,10.76,26.82,10.77c9.51,0,17.31-2.75,23.4-8.24,6.09-5.49,9.72-12.75,10.88-21.78h-35.79v-16.18h53.41c1.86,19.42-2.28,34.75-12.43,46-10.15,11.25-23.3,16.86-39.47,16.83Z"/><path class="cls-2" d="M988.31,344.64v-104.47h17.21v104.47h-17.21Z"/><path class="cls-2" d="M1133.24,344.64h-15l-58.86-75.19v75.19h-17.21v-104.47h15l58.7,75v-75h17.37v104.47Z"/><path class="cls-2" d="M1169.88,344.64v-104.47h62.82v16.48h-45.61v26.78h36.78v16.48h-36.78v28.25h45.61v16.48h-62.82Z"/></g></g></svg>
  • image-cdn/trunk/image-cdn.php

    r2678259 r2785283  
    1717 * Text Domain:       image-cdn
    1818 * License:           GPLv2 or later
    19  * Version:           1.1.6
     19 * Version:           1.1.7
    2020 */
    2121
     
    2424
    2525// Update this when you update the "Version" above!
    26 define( 'IMAGE_CDN_VERSION', '1.1.6' );
     26define( 'IMAGE_CDN_VERSION', '1.1.7' );
    2727
    2828// Load plugin files.
  • image-cdn/trunk/imageengine/class-imagecdn.php

    r2601861 r2785283  
    2727     */
    2828    private static $client_hints = array(
    29         'Viewport-Width',
    30         'Width',
    31         'DPR',
     29        'sec-ch-dpr',
     30        'sec-ch-width',
     31        'sec-ch-viewport-width',
    3232        /**
    3333         * Disabled for CORS compatibility:
     
    4545     */
    4646    private static $safe_client_hints = array(
    47         'Viewport-Width',
    48         'Width',
    49         'DPR',
     47        'sec-ch-dpr',
     48        'sec-ch-width',
     49        'sec-ch-viewport-width',
    5050    );
    5151
     
    158158            $features[] = strtolower( "ch-{$hint} {$protocol}://{$host}" );
    159159        }
    160         self::header( 'Feature-Policy', strtolower( implode( '; ', $features ) ) );
    161160
    162161        $permissions = array();
    163162        foreach ( self::$client_hints as $hint ) {
    164             $permissions[] = strtolower( "ch-{$hint}=(\"{$protocol}://{$host}\")" );
     163            $getHint = str_replace("sec-","",$hint);
     164            $permissions[] = strtolower( "{$getHint}=(\"{$protocol}://{$host}\")" );
    165165        }
    166166        // Add Permissions-Policy header.
  • image-cdn/trunk/readme.txt

    r2732508 r2785283  
    33Tags: image cdn, cdn, ImageEngine, image optimizer, content delivery network, image convert, avif, webp
    44Requires at least: 4.6
    5 Tested up to: 6.0
     5Tested up to: 6.0.2
    66Requires PHP: 5.6
    77Stable tag: trunk
     
    121121== Changelog ==
    122122
     123= 1.1.7 =
     124* Fixed: Update name of client hints [#19](https://github.com/imgeng/image-cdn-wordpress/issues/19)
     125* Header : Permissions-Policy code updated
     126* version update
     127
    123128= 1.1.6 =
    124129* Readme updates
Note: See TracChangeset for help on using the changeset viewer.