• Resolved SHiRKiT

    (@shirkit)


    Ok here I come again,

    I had given up on NGinx on my other server, but now I need to use it, no matter what. But I just can’t get it to work under NGnix.

    – I’ve created the ‘cache’ folder and given ‘chmod 777’
    – I’ve added the rewrite rule but it returns 404 for the images

    I’m stuck getting 404, probably due to some silly mistake by me.

    Sorry but I can’t edit my post. The rewrite rule in located under the code section cat nginx/conf/vhost/orquidariobahia.com.br.conf in location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {

    The website

    So here’s what I got:

    ✔ PHP GD library is installed.
    ✖ Image cache directory has not been created.
    But this is probably because the cache has not been accessed yet. 
    After accessing your website from a mobile device the directory should be automatically created.
    
    /data/wwwroot/orquidariobahia.com.br/wordpress/wp-content/cache => drwxrwxrwx
    ✔ Installation .htaccess file is setup OK.
    /data/wwwroot/orquidariobahia.com.br/wordpress/.htaccess => -rw-r--r--
    ❖ Adaptive images settings dump:
    array(12) {
      ["resolutions"]=>
      array(6) {
        [0]=>
        int(1900)
        [1]=>
        int(1400)
        [2]=>
        int(1200)
        [3]=>
        int(1024)
        [4]=>
        int(640)
        [5]=>
        int(480)
      }
      ["landscape"]=>
      bool(true)
      ["hidpi"]=>
      bool(true)
      ["cache-directory"]=>
      string(21) "cache/adaptive-images"
      ["watched-directories"]=>
      array(2) {
        [0]=>
        string(18) "wp-content/uploads"
        [1]=>
        string(17) "wp-content/themes"
      }
      ["jpeg-quality"]=>
      int(75)
      ["sharpen-images"]=>
      bool(true)
      ["watch-cache"]=>
      bool(true)
      ["browser-cache"]=>
      float(180)
      ["cdn-support"]=>
      bool(false)
      ["version"]=>
      string(6) "0.6.61"
      ["sanitized"]=>
      bool(true)
    }
    Web Server	
    nginx/1.10.3
    Document Root	
    /data/wwwroot/orquidariobahia.com.br
    PHP	
    7.1.3
    PHP Time Limit	
    0
    PHP Memory Limit	
    256M
    PHP Post Max Size	
    100M
    PHP Upload Max Size	
    50M
    PHP Max Input Vars	
    1000
    PHP Display Errors	
    No
    PHP Error Log	
    MySQL	
    5.5.5-10.1.22-MariaDB
    MySQL Ext/mysqli	
    Yes
    MySQL Table Prefix	
    wp_
    MySQL DB Charset	
    utf8mb4
    WP	
    4.7.3
    WP Multisite	
    No
    WP Debug Mode	
    No
    WP Site url	
    https://orquidariobahia.com.br/wordpress
    WP WP Home url	
    https://orquidariobahia.com.br/wordpress
    WP Permalinks	
    /%postname%/
    WP home path	
    /data/wwwroot/orquidariobahia.com.br/wordpress/
    WP content dir	
    /data/wwwroot/orquidariobahia.com.br/wordpress/wp-content
    WP plugin dir	
    /data/wwwroot/orquidariobahia.com.br/wordpress/wp-content/plugins
    WP content url	
    https://orquidariobahia.com.br/wordpress/wp-content
    WP plugin url	
    https://orquidariobahia.com.br/wordpress/wp-content/plugins
    WP Locale	
    pt_BR
    WP Memory Limit	
    40M
    WP Max Upload Size	
    50mb
    WP Active plugins	
    Adaptive Images for WordPress v.0.6.61 by Nevma
    Advanced WordPress Reset v.1.0.1 by Younes JFR.
    All-in-One WP Migration v.6.42 by ServMask
    Debug Bar v.0.8.4 by wordpressdotorg
    Desativar Comentários v.1.6 by Samir Shah
    Loco Translate v.2.0.12 by Tim Whitlock
    Make Filename Lowercase v.1.0.2 by Ed Reckers (Red Bridge Internet)
    Regenerate Thumbnails v.2.2.6 by Alex Mills (Viper007Bond)
    Registrations for WooCommerce v.1.0.6 by Haste - design and technology, Allyson Souza, Anyssa Ferreira
    Slider Revolution v.5.3.0.2 by ThemePunch
    SVG Support v.2.3.6 by Benbodhi
    Velvet Blues Update URLs v.3.2.7 by VelvetBlues.com
    WooCommerce PagSeguro v.2.11.5 by Claudio Sanches
    WooCommerce v.2.6.14 by WooThemes
    Importador do WordPress v.0.6.3 by wordpressdotorg
    ZNPB Counter Element v.1.0.1 by Balasa Sorin Stefan
    WP MU plugins

    cat nginx/conf/vhost/orquidariobahia.com.br.conf

    server {
      listen 80;
      listen 443 ssl http2;
      ssl_certificate /usr/local/nginx/conf/ssl/orquidariobahia.com.br.crt;
      ssl_certificate_key /usr/local/nginx/conf/ssl/orquidariobahia.com.br.key;
      ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
      ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
      ssl_prefer_server_ciphers on;
      ssl_session_timeout 10m;
      ssl_session_cache builtin:1000 shared:SSL:10m;
      ssl_buffer_size 1400;
      add_header Strict-Transport-Security max-age=15768000;
      ssl_stapling on;
      ssl_stapling_verify on;
      server_name orquidariobahia.com.br;
      access_log /data/wwwlogs/orquidariobahia.com.br_nginx.log combined;
      index index.html index.htm index.php;
      include /usr/local/nginx/conf/rewrite/wordpress.conf;
      root /data/wwwroot/orquidariobahia.com.br;
      if ($ssl_protocol = "") { return 301 https://$server_name$request_uri; }
    
      #error_page 404 = /404.html;
      #error_page 502 = /502.html;
    
      location ~ [^/]\.php(/|$) {
        #fastcgi_pass remote_php_ip:9000;
        fastcgi_pass unix:/dev/shm/php-cgi.sock;
        fastcgi_index index.php;
        include fastcgi.conf;
      }
      location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
        expires 30d;
        access_log on;
        rewrite_log on;
        rewrite \.(?:jpe?g|gif|png)$ wp-content/plugins/adaptive-images/adaptive-images-script.php;
      }
      location ~ .*\.(js|css)?$ {
        expires 7d;
        access_log off;
      }
      location ~ /\.ht {
        deny all;
      }
    }

    cat nginx/conf/fastcgi.conf

    fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
    fastcgi_param  QUERY_STRING       $query_string;
    fastcgi_param  REQUEST_METHOD     $request_method;
    fastcgi_param  CONTENT_TYPE       $content_type;
    fastcgi_param  CONTENT_LENGTH     $content_length;
    
    fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
    fastcgi_param  REQUEST_URI        $request_uri;
    fastcgi_param  DOCUMENT_URI       $document_uri;
    fastcgi_param  DOCUMENT_ROOT      $document_root;
    fastcgi_param  SERVER_PROTOCOL    $server_protocol;
    fastcgi_param  REQUEST_SCHEME     $scheme;
    fastcgi_param  HTTPS              $https if_not_empty;
    
    fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
    fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
    
    fastcgi_param  REMOTE_ADDR        $remote_addr;
    fastcgi_param  REMOTE_PORT        $remote_port;
    fastcgi_param  SERVER_ADDR        $server_addr;
    fastcgi_param  SERVER_PORT        $server_port;
    fastcgi_param  SERVER_NAME        $server_name;
    
    # PHP only, required if PHP was built with --enable-force-cgi-redirect
    fastcgi_param  REDIRECT_STATUS    200;

    cat nginx/conf/nginx.conf

    user www www;
    worker_processes auto;
    
    error_log /data/wwwlogs/error_nginx.log crit;
    pid /var/run/nginx.pid;
    worker_rlimit_nofile 51200;
    
    events {
      use epoll;
      worker_connections 51200;
      multi_accept on;
    }
    
    http {
      include mime.types;
      default_type application/octet-stream;
      server_names_hash_bucket_size 128;
      client_header_buffer_size 32k;
      large_client_header_buffers 4 32k;
      client_max_body_size 1024m;
      client_body_buffer_size 10m;
      sendfile on;
      tcp_nopush on;
      keepalive_timeout 120;
      server_tokens off;
      tcp_nodelay on;
    
      fastcgi_connect_timeout 300;
      fastcgi_send_timeout 300;
      fastcgi_read_timeout 300;
      fastcgi_buffer_size 64k;
      fastcgi_buffers 4 64k;
      fastcgi_busy_buffers_size 128k;
      fastcgi_temp_file_write_size 128k;
      fastcgi_intercept_errors on;
    
      #Gzip Compression
      gzip on;
      gzip_buffers 16 8k;
      gzip_comp_level 6;
      gzip_http_version 1.1;
      gzip_min_length 256;
      gzip_proxied any;
      gzip_vary on;
      gzip_types
        text/xml application/xml application/atom+xml application/rss+xml application/xhtml+xml image/svg+xml
        text/javascript application/javascript application/x-javascript
        text/x-json application/json application/x-web-app-manifest+json
        text/css text/plain text/x-component
        font/opentype application/x-font-ttf application/vnd.ms-fontobject
        image/x-icon;
      gzip_disable "MSIE [1-6]\.(?!.*SV1)";
    
      #If you have a lot of static files to serve through Nginx then caching of the files' metadata (not the actual files' contents) can save some latency.
      open_file_cache max=1000 inactive=20s;
      open_file_cache_valid 30s;
      open_file_cache_min_uses 2;
      open_file_cache_errors on;
    
    ######################## default ############################
      server {
      listen 80;
      server_name _;
      access_log /data/wwwlogs/access_nginx.log combined;
      root /data/wwwroot/default;
      index index.html index.htm index.php;
      location /nginx_status {
        stub_status on;
        access_log off;
        allow 127.0.0.1;
        deny all;
        }
      location ~ [^/]\.php(/|$) {
        #fastcgi_pass remote_php_ip:9000;
        fastcgi_pass unix:/dev/shm/php-cgi.sock;
        fastcgi_index index.php;
        include fastcgi.conf;
        }
      location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
        expires 30d;
        access_log off;
        }
      location ~ .*\.(js|css)?$ {
        expires 7d;
        access_log off;
        }
      location ~ /\.ht {
        deny all;
        }
      }
    
    ########################## vhost #############################
      include vhost/*.conf;
    }

    cat nginx/conf/rewrite/wordpress.conf

    location / {
        try_files $uri $uri/ /index.php?$args;
        }
    rewrite /wp-admin$ $scheme://$host$uri/ permanent;
Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    Hello, again,

    Well, I am not an NginX expert, but I think that your problem is the fact that your installation is not inside the root directory of your webserver, it is under /wordpress.

    So, I believe you should change this:

    
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
        expires 30d;
        access_log on;
        rewrite_log on;
        rewrite \.(?:jpe?g|gif|png)$ wp-content/plugins/adaptive-images/adaptive-images-script.php;
    }
    

    with this:

    
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
        expires 30d;
        access_log on;
        rewrite_log on;
        rewrite \.(?:jpe?g|gif|png)$ wordpress/wp-content/plugins/adaptive-images/adaptive-images-script.php;
    }
    

    Note the extra /wordpress in the rewrite rule there! Let me know if this actually did the trick.

    Cheers,
    Takis

    Thread Starter SHiRKiT

    (@shirkit)

    Nope, I’ve tried that already and didn’t work. It was my first guess as well.

    I’ll give a try moving everything one folder up, so I remove the ‘wordpress’ subfolder, but I highly doubt this will cut it.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, again,

    I am afraid we’re going to have to consult an NginX expert here, because everything we know so far has pointed us to this direction.

    What I know and have tested that it works is putting:

    location / {
        rewrite \.(?:jpe?g|gif|png)$ /wordpress/wp-content/plugins/adaptive-images/adaptive-images-script.php;
    }

    in my NginX configuration file.

    Perhaps you could try and put this and only this alone, with the /wordpress of course, but without any other line inside the directive.

    Also, if you do test moving your installation to the root directory, tell me how it goes.

    Cheers,
    Takis

    Thread Starter SHiRKiT

    (@shirkit)

    My replies are being chewed up by something, I can’t understand what’s going on here.

    Thread Starter SHiRKiT

    (@shirkit)

    Ok, I’ve spotted the first mistake.

    rewrite \.(?:jpe?g|gif|png)$ wordpress/wp-content/plugins/adaptive-images/adaptive-images-script.php;

    It was missing the leading / in /wordpress, so that’s why it was throwing HTTP 404 on all requests. Now at least the images are being loaded.

    But after fixing that AND moving the wordpress up one directory (which was never the issue), it still doesn’t work.

    Here’s the full log of what’s going on

    (this is the access log) cat orquidariobahia.com.br_nginx.log

    186.244.194.237 - - [18/Mar/2017:02:09:54 +0800] "POST /wp-admin/admin-ajax.php HTTP/2.0" 200 326 "https://orquidariobahia.com.br/wp-admin/options-general.php?page=adaptive-images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0"
    186.244.194.237 - - [18/Mar/2017:02:09:55 +0800] "GET / HTTP/2.0" 200 8909 "https://www.google.com.br/" "Mozilla/5.0 (Linux; Android 7.0; SHIELD Tablet K1 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.108 Safari/537.36"
    186.244.194.237 - - [18/Mar/2017:02:09:57 +0800] "GET /wp-content/uploads/2017/01/logo-horizontal2.png HTTP/2.0" 200 24449 "https://orquidariobahia.com.br/" "Mozilla/5.0 (Linux; Android 7.0; SHIELD Tablet K1 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.108 Safari/537.36"
    186.244.194.237 - - [18/Mar/2017:02:09:57 +0800] "GET /wp-content/uploads/2017/01/footer_payment.png HTTP/2.0" 200 25514 "https://orquidariobahia.com.br/" "Mozilla/5.0 (Linux; Android 7.0; SHIELD Tablet K1 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.108 Safari/537.36"
    186.244.194.237 - - [18/Mar/2017:02:09:57 +0800] "GET /wp-content/themes/kallyas/template_helpers/icons/glyphicons_halflingsregular/glyphicons_halflingsregular.woff2 HTTP/2.0" 200 18183 "https://orquidariobahia.com.br/wp-content/themes/kallyas/css/bootstrap.min.css?ver=4.7.3" "Mozilla/5.0 (Linux; Android 7.0; SHIELD Tablet K1 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.108 Safari/537.36"
    186.244.194.237 - - [18/Mar/2017:02:09:57 +0800] "GET /wp-content/themes/kallyas/template_helpers/icons/kl-social-icons/kl-social-icons.woff HTTP/2.0" 200 24838 "https://orquidariobahia.com.br/wp-content/uploads/zn_dynamic.css?ver=1489773439.7852" "Mozilla/5.0 (Linux; Android 7.0; SHIELD Tablet K1 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.108 Safari/537.36"
    186.244.194.237 - - [18/Mar/2017:02:09:57 +0800] "GET /wp-content/uploads/2017/01/esquerda.png HTTP/2.0" 200 1202453 "https://orquidariobahia.com.br/" "Mozilla/5.0 (Linux; Android 7.0; SHIELD Tablet K1 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.108 Safari/537.36"
    186.244.194.237 - - [18/Mar/2017:02:09:58 +0800] "POST /?wc-ajax=get_refreshed_fragments HTTP/2.0" 200 654 "https://orquidariobahia.com.br/" "Mozilla/5.0 (Linux; Android 7.0; SHIELD Tablet K1 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.108 Safari/537.36"
    186.244.194.237 - - [18/Mar/2017:02:09:58 +0800] "GET /wp-content/uploads/2017/01/meio.png HTTP/2.0" 200 1137103 "https://orquidariobahia.com.br/" "Mozilla/5.0 (Linux; Android 7.0; SHIELD Tablet K1 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.108 Safari/537.36"
    186.244.194.237 - - [18/Mar/2017:02:09:58 +0800] "GET /wp-content/uploads/2017/01/direita.png HTTP/2.0" 200 1096943 "https://orquidariobahia.com.br/" "Mozilla/5.0 (Linux; Android 7.0; SHIELD Tablet K1 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.108 Safari/537.36"

    (this is actually a DEBUG log) cat orquidariobahia.com.br_error.log

    2017/03/18 02:09:54 [notice] 10084#0: *1052 "/wp-admin$" does not match "/wp-admin/admin-ajax.php", client: 186.244.194.237, server: orquidariobahia.com.br, request: "POST /wp-admin/admin-ajax.php HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/wp-admin/options-general.php?page=adaptive-images"
    2017/03/18 02:09:55 [notice] 10084#0: *1055 "/wp-admin$" does not match "/", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET / HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://www.google.com.br/"
    2017/03/18 02:09:55 [notice] 10084#0: *1055 "/wp-admin$" does not match "/index.php", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET / HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://www.google.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/style.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/style.css?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/css/bootstrap.min.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/css/bootstrap.min.css?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/css/template.min.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/css/template.min.css?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/uploads/kallyas-builder/cache/370-layout.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/kallyas-builder/cache/370-layout.css?ver=ba4a1ca476d41db4b4533d39f4a3a8bc HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/revslider/public/assets/css/settings.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/revslider/public/assets/css/settings.css?ver=5.3.0.2 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=2.6.14 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/woocommerce/assets/css/woocommerce.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/woocommerce/assets/css/woocommerce.css?ver=2.6.14 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas-child/style.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas-child/style.css?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/css/plugins/kl-woocommerce.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/css/plugins/kl-woocommerce.css?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/uploads/zn_dynamic.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/zn_dynamic.css?ver=1489773439.7852 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/addons/wowjs/animate.min.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/addons/wowjs/animate.min.css?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-includes/js/jquery/jquery.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-includes/js/jquery/jquery.js?ver=1.12.4 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-includes/js/jquery/jquery-migrate.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/revslider/public/assets/js/jquery.themepunch.tools.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/revslider/public/assets/js/jquery.themepunch.tools.min.js?ver=5.3.0.2 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/revslider/public/assets/js/jquery.themepunch.revolution.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/revslider/public/assets/js/jquery.themepunch.revolution.min.js?ver=5.3.0.2 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/addons/wowjs/wow.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/addons/wowjs/wow.js?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/addons/flickrfeed/jquery.jflickrfeed.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/addons/flickrfeed/jquery.jflickrfeed.min.js?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=2.6.14 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=2.6.14 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/woocommerce/assets/js/jquery-cookie/jquery.cookie.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/woocommerce/assets/js/jquery-cookie/jquery.cookie.min.js?ver=1.4.1 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=2.6.14 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/js/plugins.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/js/plugins.min.js?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/addons/scrollmagic/scrollmagic-tweenlite.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/addons/scrollmagic/scrollmagic-tweenlite.js?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/js/znscript.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/js/znscript.min.js?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/addons/caroufredsel/jquery.carouFredSel-packed.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/addons/caroufredsel/jquery.carouFredSel-packed.js?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-includes/js/wp-embed.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-includes/js/wp-embed.min.js?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/uploads/2017/01/logo-horizontal2.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/logo-horizontal2.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "\.(?:jpe?g|gif|png)$" matches "/wp-content/uploads/2017/01/logo-horizontal2.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/logo-horizontal2.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 rewritten data: "/wp-content/plugins/adaptive-images/adaptive-images-script.php", args: "", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/logo-horizontal2.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/uploads/2017/01/esquerda.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/esquerda.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "\.(?:jpe?g|gif|png)$" matches "/wp-content/uploads/2017/01/esquerda.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/esquerda.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 rewritten data: "/wp-content/plugins/adaptive-images/adaptive-images-script.php", args: "", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/esquerda.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/uploads/2017/01/meio.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/meio.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "\.(?:jpe?g|gif|png)$" matches "/wp-content/uploads/2017/01/meio.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/meio.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 rewritten data: "/wp-content/plugins/adaptive-images/adaptive-images-script.php", args: "", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/meio.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/uploads/2017/01/direita.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/direita.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "\.(?:jpe?g|gif|png)$" matches "/wp-content/uploads/2017/01/direita.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/direita.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 rewritten data: "/wp-content/plugins/adaptive-images/adaptive-images-script.php", args: "", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/direita.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/uploads/2017/01/footer_payment.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/footer_payment.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "\.(?:jpe?g|gif|png)$" matches "/wp-content/uploads/2017/01/footer_payment.png", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/footer_payment.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 rewritten data: "/wp-content/plugins/adaptive-images/adaptive-images-script.php", args: "", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/footer_payment.png HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-includes/js/wp-emoji-release.min.js", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-includes/js/wp-emoji-release.min.js?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=2.6.14 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/css/print.css", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/css/print.css?ver=4.7.3 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [warn] 10084#0: *1055 an upstream response is buffered to a temporary file /usr/local/nginx/fastcgi_temp/7/00/0000000007 while reading upstream, client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/esquerda.png HTTP/2.0", upstream: "fastcgi://unix:/dev/shm/php-cgi.sock:", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [warn] 10084#0: *1055 an upstream response is buffered to a temporary file /usr/local/nginx/fastcgi_temp/8/00/0000000008 while reading upstream, client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/meio.png HTTP/2.0", upstream: "fastcgi://unix:/dev/shm/php-cgi.sock:", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:56 [warn] 10084#0: *1055 an upstream response is buffered to a temporary file /usr/local/nginx/fastcgi_temp/9/00/0000000009 while reading upstream, client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/uploads/2017/01/direita.png HTTP/2.0", upstream: "fastcgi://unix:/dev/shm/php-cgi.sock:", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:57 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/template_helpers/icons/glyphicons_halflingsregular/glyphicons_halflingsregular.woff2", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/template_helpers/icons/glyphicons_halflingsregular/glyphicons_halflingsregular.woff2 HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/wp-content/themes/kallyas/css/bootstrap.min.css?ver=4.7.3"
    2017/03/18 02:09:57 [notice] 10084#0: *1055 "/wp-admin$" does not match "/wp-content/themes/kallyas/template_helpers/icons/kl-social-icons/kl-social-icons.woff", client: 186.244.194.237, server: orquidariobahia.com.br, request: "GET /wp-content/themes/kallyas/template_helpers/icons/kl-social-icons/kl-social-icons.woff HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/wp-content/uploads/zn_dynamic.css?ver=1489773439.7852"
    2017/03/18 02:09:57 [notice] 10084#0: *1055 "/wp-admin$" does not match "/", client: 186.244.194.237, server: orquidariobahia.com.br, request: "POST /?wc-ajax=get_refreshed_fragments HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"
    2017/03/18 02:09:57 [notice] 10084#0: *1055 "/wp-admin$" does not match "/index.php", client: 186.244.194.237, server: orquidariobahia.com.br, request: "POST /?wc-ajax=get_refreshed_fragments HTTP/2.0", host: "orquidariobahia.com.br", referrer: "https://orquidariobahia.com.br/"

    Debug info

    ✔ PHP GD library is installed.
    
    ✔ Image cache directory has been created.
    
        /data/wwwroot/orquidariobahia.com.br/wp-content/cache/adaptive-images => drwxr-xr-x
    
    ✔ Installation .htaccess file is setup OK.
    
        /data/wwwroot/orquidariobahia.com.br/.htaccess => -rw-r--r--
    
    ❖ Adaptive images settings dump:
    
        array(12) {
          ["resolutions"]=>
          array(3) {
            [0]=>
            int(1024)
            [1]=>
            int(640)
            [2]=>
            int(480)
          }
          ["cache-directory"]=>
          string(21) "cache/adaptive-images"
          ["watched-directories"]=>
          array(2) {
            [0]=>
            string(18) "wp-content/uploads"
            [1]=>
            string(17) "wp-content/themes"
          }
          ["jpeg-quality"]=>
          int(75)
          ["sharpen-images"]=>
          bool(true)
          ["watch-cache"]=>
          bool(true)
          ["browser-cache"]=>
          float(180)
          ["landscape"]=>
          bool(false)
          ["hidpi"]=>
          bool(false)
          ["cdn-support"]=>
          bool(false)
          ["version"]=>
          string(6) "0.6.61"
          ["sanitized"]=>
          bool(true)
        }

    System information

    Web Server	
    
    nginx/1.10.3
    Document Root	
    
    /data/wwwroot/orquidariobahia.com.br
    PHP	
    
    7.1.3
    PHP Time Limit	
    
    0
    PHP Memory Limit	
    
    256M
    PHP Post Max Size	
    
    100M
    PHP Upload Max Size	
    
    50M
    PHP Max Input Vars	
    
    1000
    PHP Display Errors	
    
    No
    PHP Error Log	
    
    MySQL	
    
    5.5.5-10.1.22-MariaDB
    MySQL Ext/mysqli	
    
    Yes
    MySQL Table Prefix	
    
    wp_
    MySQL DB Charset	
    
    utf8mb4
    WP	
    
    4.7.3
    WP Multisite	
    
    No
    WP Debug Mode	
    
    No
    WP Site url	
    
    https://orquidariobahia.com.br
    WP WP Home url	
    
    https://orquidariobahia.com.br
    WP Permalinks	
    
    /%postname%/
    WP home path	
    
    /data/wwwroot/orquidariobahia.com.br/
    WP content dir	
    
    /data/wwwroot/orquidariobahia.com.br/wp-content
    WP plugin dir	
    
    /data/wwwroot/orquidariobahia.com.br/wp-content/plugins
    WP content url	
    
    https://orquidariobahia.com.br/wp-content
    WP plugin url	
    
    https://orquidariobahia.com.br/wp-content/plugins
    WP Locale	
    
    pt_BR
    WP Memory Limit	
    
    40M
    WP Max Upload Size	
    
    50mb
    WP Active plugins	
    
    Adaptive Images for WordPress v.0.6.61 by Nevma
    Advanced WordPress Reset v.1.0.1 by Younes JFR.
    All-in-One WP Migration v.6.42 by ServMask
    Debug Bar v.0.8.4 by wordpressdotorg
    Desativar Comentários v.1.6 by Samir Shah
    Loco Translate v.2.0.12 by Tim Whitlock
    Make Filename Lowercase v.1.0.2 by Ed Reckers (Red Bridge Internet)
    Regenerate Thumbnails v.2.2.6 by Alex Mills (Viper007Bond)
    Registrations for WooCommerce v.1.0.6 by Haste - design and technology, Allyson Souza, Anyssa Ferreira
    Slider Revolution v.5.3.0.2 by ThemePunch
    SVG Support v.2.3.6 by Benbodhi
    WooCommerce PagSeguro v.2.11.5 by Claudio Sanches
    WooCommerce v.2.6.14 by WooThemes
    Importador do WordPress v.0.6.3 by wordpressdotorg
    ZNPB Counter Element v.1.0.1 by Balasa Sorin Stefan
    WP MU plugins

    Calculate cache size

    Total files in the adaptive images cache: 0
    
    Total directories in the adaptive images cache: 0
    
    Total size of the adaptive images cache: 0

    My replies are being chewed up by something, I can’t understand what’s going on here.

    Your replies are getting caught in our queries. If this happens again PLEASE be patient instead of posting a bunch of times.

    The queries are usually checked every few hours from us volunteer mods.

    Thread Starter SHiRKiT

    (@shirkit)

    I’m sorry @kidsguide I didn’t see any notice that there would be a delay. I actually tried to post a bunch of times, but I didn’t get any feedback, I presumed it was being denied posting due to the post length.

    If I can suggest to give any feedback that the message was actually posted would be great.

    Sorry for disturbing.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hmm, I was not aware of such a process @kidsguide. What kind of queries are these, if I may ask, so that we can be prepared next time?

    Now @shirkit I think the plugin is working correctly! Make sure you check your website in the way that is described in the “How to test” section of the plugin description page. There, it is explained that, in order for the plugin to actual take effect and resize images, one has to access images either from an actual mobile device or from their browser’s “Developer tools” in “Responsive design mode”.

    In the meantime, check out these debugging urls from a random image in your website:

    So, perhaps the plugin was also working when your WordPress installation was in the /wordpress directory.

    Cheers,
    Takis

    Thread Starter SHiRKiT

    (@shirkit)

    Wow now that’s something, because I tested on my NVIDIA Shield, on Chrome Canary’s responsive and Firefox Developer Edition responsive settings and they all failed to receive a scaled version, and now it’s generating. I really don’t know what happened there, maybe a caching issue somewhere? I cleared on the client and server side, but may have missed somewhere along the line.

    Now I see everything working properly: https://gtmetrix.com/reports/orquidariobahia.com.br/frYaLypP

    Now I need to figure it out a way to improve desktop https://gtmetrix.com/reports/orquidariobahia.com.br/Kiod044N

    And need to tackle the server response timing, image sizes and formats, see if I can fix those huge height images (probably can’t).

    Thanks for the support, and sorry for wasting your time. Good to see it works flawlessly on NGINX!

    Plugin Author Takis Bouyouris

    (@nevma)

    I am glad you can see the plugin working now!

    If I may say so, I would recommend some other tool for testing your website speed like http://webpagetest.org/ because it is a lot more detailed and it uses real machines behind it.

    I made a quick test there http://www.webpagetest.org/result/170317_C4_5TZK/ and it seems that the only things that you could do to optimise your website are:

    a) reduce your time to first byte time (you should explore this in your server, theme, plugins, database, server side caching, etc)

    b) reduce the number of requests for CSS and Javascript files by combining them to one file and

    Usage of a CDN, I would not consider necessary in your case.

    Also, it does not seem that your images really need any further optimisation.

    Cheers,
    Takis

    Thread Starter SHiRKiT

    (@shirkit)

    Thanks for that awesome tool! I’m going to save it for future use! I’m going to explore for automation into the future, as I saw that it should be capable!

    Also, thanks for your insight, it served me a great deal to further improve my page speed.

    After a few days of tweaking, now I think I’ve solved all the (easily solvable) issues I have on the website, except that, despite the plugin working on the page, it still serves the wrong image size, and this time I can’t figure it out why.

    https://gtmetrix.com/reports/orquidariobahia.com.br/BRIo3eNC (Desktop)
    https://gtmetrix.com/reports/www.orquidariobahia.com.br/HwtQbeQN (Phone)

    http://www.webpagetest.org/result/170324_TK_5HDC/ (Desktop)
    http://www.webpagetest.org/result/170324_93_5KJP/ (Phone)

    See that the images dimension’s remain the same despite it works on the debug area, the actual image that’s being delivered is still the original one, and not the cropped.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello again,

    I am very glad I could be of help.

    Now, all my tests show that your images are being resized correctly. Take a look at this screenshot for instance http://prntscr.com/eo2ffc/. Check the resolution cookie, the original image size and the final downloaded image size.

    However, I do see what you mean in your example in webpagetest.org. There is a slight bug there in our code, which will be fixed in the next -minor update- version. The bug has to do with the calculation of the pixel density of the Motorola G4 device, that you used for your test.

    Cheers,
    Takis

    Thread Starter SHiRKiT

    (@shirkit)

    I see what you mean. When I tested with Firefox’s Inspector it correctly delivers the smaller resolution image. But the thing is that the GTMetrix test also has issue? They use a Galaxy Nexus, and it also delivered the original image.

    Now something deeper. This is the test on 1920×1080 setup.

    View post on imgur.com

    The plugin correctly delivered the original image size, and that’s perfect.

    Now look at the mobile test.

    View post on imgur.com

    Despite having a smaller resolution, the image’s size is 212%, 160% and 173% the original file size! This doesn’t happen on JPEG images, only on PNG, just tested this.

    I’m running W3 Total Cache now as well. I don’t think it has anything to do with it, but I think it’s worth noting.

    WP Active plugins	
    
    Adaptive Images for WordPress v.0.6.61 by Nevma
    Advanced WordPress Reset v.1.0.1 by Younes JFR.
    All-in-One WP Migration v.6.42 by ServMask
    Debug Bar v.0.8.4 by wordpressdotorg
    Desativar Comentários v.1.6 by Samir Shah
    Google Analytics Dashboard para WP v.4.9.6.2 by Alin Marcu
    Google Captcha (reCAPTCHA) by BestWebSoft v.1.27 by BestWebSoft
    Google XML Sitemaps v.4.0.8 by Arne Brachhold
    Loco Translate v.2.0.12 by Tim Whitlock
    Make Filename Lowercase v.1.0.2 by Ed Reckers (Red Bridge Internet)
    Regenerate Thumbnails v.2.2.6 by Alex Mills (Viper007Bond)
    Registrations for WooCommerce v.1.0.6 by Haste - design and technology, Allyson Souza, Anyssa Ferreira
    Slider Revolution v.5.3.0.2 by ThemePunch
    SVG Support v.2.3.6 by Benbodhi
    Velvet Blues Update URLs v.3.2.7 by VelvetBlues.com
    W3 Total Cache v.0.9.5.2 by Frederick Townes
    WooCommerce PagSeguro v.2.11.5 by Claudio Sanches
    WooCommerce v.2.6.14 by WooThemes
    Importador do WordPress v.0.6.3 by wordpressdotorg
    Estatísticas da WP v.12.0 by Greg Ross & Mostafa Soufi
    ZNPB Counter Element v.1.0.1 by Balasa Sorin Stefan

    In any case, thanks for your awesome support and for creating this plugin!

    • This reply was modified 9 years, 2 months ago by SHiRKiT.
    Plugin Author Takis Bouyouris

    (@nevma)

    Ah, I see what you mean about the PNG images, although I should note that it is totally recommended to use JPEG for all images unless you need some kind of transparency to them. If you need transparency then PNG is the only viable option. If you don’t need transparency, then JPEG is definitely the best option. I am saying this because our plugin makes this assumption and takes it for granted as a best practice.

    Thank you for your kind words.

    Cheers,
    Takis

    Thread Starter SHiRKiT

    (@shirkit)

    Yeah, I just spotted that mistake of mine of using a PNG in a non-transparent image. But still I don’t quite understand why would grow in size when scaling the image down, but that’s ok.

    Anyways, thank you very much!

Viewing 15 replies - 1 through 15 (of 22 total)

The topic ‘Nginx issues’ is closed to new replies.