Support » Plugin: Adaptive Images for WordPress » Images not found in folder

  • Hi, I built my site first and then added your plugin. When I checked my server, I found:

    wp-content > cache > adaptive-images > 1024 > wp-content > uploads

    and then in that uploads folder are only three images: my site header, an older site header previously deleted, and one other page header. All are smaller then the originals so I assume they were made by the plugin, but my site had way more than three images.

    Your thoughts?

    https://wordpress.org/plugins/adaptive-images/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Takis

    (@nevma)

    Hello, there,

    Thank you for trying out our plugin!

    Here are some possible reasons you are seeing this:

    1. Probably a lot of the other images you have in your website are already small enough so they do not need to be resized at all.

    2. Perhaps some of your images have not been accessed yet. The plugin only resizes images at the time that they are accessed and then caches them.

    3. It is also possible that there is a combination of the above. This means that some images might not have yet been accessed by devices small enough for the plugin to decide that they should be resized.

    However the fact that you are seeing even “some” images in the cache folder means most certainly that the plugin is indeed working correctly.

    Does this make sense?

    Let me know if there is anything more you need!

    Cheers,
    Takis

    Yes, that makes sense. I did reduce the image quality for many of the images to get them at around or below 200KB, and many are now below 100KB.

    However, I thought it was not just a matter of file size but image size. I have several images that are 900 pixels high and displayed at 450 pixels high (to accommodate the Retina screen); I would think those would be downsized. No?

    I will test in Chrome developer tools to see if more images are accessed, though I don’t know if this facsimile is the same as an actual mobile device accessing the site. Will also test in my tablet and see what happens.

    Thanks for the clarification.

    Plugin Author Takis

    (@nevma)

    Both Chrome and Firefox developer tools in device mode emulate an actual smaller screen size, so you should be able to test and debug this behaviour in any way.

    One last point to keep in mind: the decision whether an image will be resized or not is made by the plugin based on the combination of the i) image size, ii) the device screen size, iii) whether the screen is HiDPI and the corresponding plugin setting is enabled and, lastly, iv) by the setting of whether the portrait or the landscape orientation of the device should be taken into account.

    Hope I was able to help!

    Cheers,
    Takis

    Hi Takis,

    I did a test in Chrome developer tools, testing in all available devices.

    What I noticed is that the 900-pixel images displayed at 450 pixels are not downsized in these devices; however, except for the Retina screens, I would think the images would be downsized to 400 pixels by Adaptive Images for these other mobile devices. Yes? No?

    Another possible issue is the Featured Images on my home page (www.mademers.com). Those three images are each 600 x 465 pixels, and are 173kb, 133kb, and 93kb respectively. All display smaller in landscape mode on mobile phones, yet none of these have smaller versions appearing in the Adaptive Images folder. Are these file sizes considered small enough already for a mobile phone?

    All the default options were left checked as is.

    Plugin Author Takis

    (@nevma)

    I am afraid I gonna have to ask you for the output of the two debug buttons in the plugin settings page and the url of your website in order to debug this. Especially the url! I do not have sufficient data in my hand to give an answer. 🙁

    Hi Nevma:

    URL: http://www.mademers.com

    First debug:

    ✔ PHP GD library is installed.
    
    ✔ Image cache directory has been created.
    
        /home4/mademer1/public_html/wp-content/cache/adaptive-images => drwxr-xr-x
    
    ✔ Installation .htaccess file is setup OK.
    
        /home4/mademer1/public_html/.htaccess => -rw-r--r--
    
    ❖ Adaptive images settings dump:
    
        array(12) {
          ["resolutions"]=>
          array(3) {
            [0]=>
            int(1024)
            [1]=>
            int(640)
            [2]=>
            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(100)
          ["sharpen-images"]=>
          bool(true)
          ["watch-cache"]=>
          bool(true)
          ["browser-cache"]=>
          float(180)
          ["cdn-support"]=>
          bool(false)
          ["version"]=>
          string(6) "0.6.42"
          ["sanitized"]=>
          bool(true)
        }

    Second debug:

    Web Server	
    
    Apache
    Document Root	
    
    /home4/mademer1/public_html
    PHP	
    
    5.4.43
    PHP Time Limit	
    
    30
    PHP Memory Limit	
    
    256M
    PHP Post Max Size	
    
    50M
    PHP Upload Max Size	
    
    50M
    PHP Max Input Vars	
    
    1000
    PHP Display Errors	
    
    No
    PHP Error Log	
    
    error_log
    MySQL	
    
    5.5.42-37.1-log
    MySQL Ext/mysqli	
    
    No
    MySQL Table Prefix	
    
    wp_xfdq_
    MySQL DB Charset	
    
    utf8
    WP	
    
    4.4.2
    WP Multisite	
    
    No
    WP Debug Mode	
    
    No
    WP Site url	
    
    
    Home
    WP WP Home url
    Home
    WP Permalinks /%postname%/ WP home path /home4/mademer1/public_html/ WP content dir /home4/mademer1/public_html/wp-content WP plugin dir /home4/mademer1/public_html/wp-content/plugins WP content url http://mademers.com/wp-content WP plugin url http://mademers.com/wp-content/plugins WP Locale en_CA WP Memory Limit 40M WP Max Upload Size 50mb WP Active plugins Adaptive Images for WordPress v.0.6.42 by Nevma Easy Social Icons v.1.2.4.1 by cybernetikz Image Widget v.4.2.2 by Modern Tribe, Inc. Sassy Social Share v.2.3 by Team Heateor Smart Slider 3 v.3.0.28 by Nextend Velvet Blues Update URLs v.3.2.4 by VelvetBlues.com WP MU plugins

    Hope this helps.

    Plugin Author Takis

    (@nevma)

    Hello, again,

    All the checks I make show that the plugin is working properly! The only cases you do not see images resized are the cases where the images do not need to be resized according to your settings.

    I noticed that you have the landscape orientation and the HiDPI support enabled. Take this image http://mademers.com/wp-content/uploads/TPB-1.jpg for instance. It is 599×900 pixels. With your settings when this image is accessed by a device with a screen 480×640 the plugin decides to take into account the bigger screen dimension, which is 640. But the image is already smaller in width than the screen, so the plugin decides to not scale it down and it serves the original image.

    So, you see, that according to one’s settings there are legitimate cases where the images are not resized.

    Cheers,
    Takis

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Images not found in folder’ is closed to new replies.