Forum Replies Created

Viewing 15 replies - 91 through 105 (of 1,405 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    You are welcome, my friend!

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, Pete,

    Thank you very much for your message!

    Well, it generally depends on the tool you use to audit your website. If the tool simply analyses your HTML code then id will have no notion of what the plugin does, because the plugin depends on the fact that a real browser will run all the code. Pagespeed does not do that. Webpagetest, on the other hand, does indeed use real machines and real browsers and, if all goes, well it should be able to detect the fact that the plugin serves downscaled images when the test is done in a mobile device with a smaller screen.

    However, I do see in your example that Webpagetest did not correctly detect the downscaled images. But I do see that your website serves them correctly: https://prnt.sc/pyxrd2/. That is not natural and has not happened in any of my tests so far. Perhaps, I need to do some more debugging there.

    The truth is that Google does not actually run any of the above tools to “rank” your website based on its speed. It does detect speed by using Analytics to measure actual timings when users visit a web page. All the above tools are available in order for one to measure and detect their optimisation issues and find ways to solve. They are not used for ranking, not even Pagespeed, as far as I know.

    And that makes sense because, on the one hand, what matters is actual speed and not just best practices and, on the other hand, not all best practices can be used on all websites, so it would be rather unfair for Google to rank this way.

    If you indeed have a generally poor ranking for specific keywords then I suggest you conduct a SEO audit on your website in order to detect all possible problems or areas that you can improve.

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    Thank you very much for your message and for the very thorough information you shared!

    I see that you are using Cloudflare for the delivery of your images. Now CDNs are unfortunately a bit tricky for our plugin because they handle the image requests themselves before your WordPress website. We can only partially support them by enabling the CDN support option in the plugin settings page. Also, for this to work you need to set your CDN to take into account url (GET) parameters on image requests.

    This way our plugin will turn any given image request like https://www.colleadimari.it/prove/wordpress/wp-content/uploads/2019/09/colle-adimari-2.jpg into https://www.colleadimari.it/prove/wordpress/wp-content/uploads/2019/09/colle-adimari-2.jpg?resolution=320,1 and allow for your WordPress website to handle the request accordingly. However, this might miss some images and allow them to be delivered in full size.

    Lastly, if this is not a good option for you, then I am afraid there is not much else to do. You need to choose between the benefits of the Adaptive Images plugin and using the CDN.

    Let me know if I can help any further!

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, there my friend,

    There must be some misunderstanding here about the plugin features. Let me try and explain based on your points:

    • The plugin is designed to NOT generate all sizes until it is absolutely necessary, in order to save valuable server resources (CPU and disk).
    • It is designed to NOT interfere with the srcset in order to work transparently. And it is totally compatible with it!
    • It does use all the custom sizes you set in the plugin settings and gives more options than the core custom sizes.
    • It does send search engines the original size of each image which the correct thing to do SEO-wise.

    All the above are clearly stated in the plugin description.

    Other than that, I would be happy to answer any technical questions you may have.

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    I am glad I was able to help!

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello,

    Well if you went as far to see the debug message on an image request with the ?debug=true url parameter the most important part is done. The plugin is set up and works! Just for the record, what was the setting that made the difference?

    Now the reason you might not be seeing your images scaled can probably be caching. Do you have CDN or caching servers set up? In the case of a CDN things are a bit tricky, because they are intercepting image requests and handling them before your WordPress installation. We are trying to cover this issue but only a bit experimentally so far (see our plugin page description for more details on this). What you can do is try to enable the CDN support option in the plugin settings page which will cover most cases. What cannot be handled is the CDN serving your images from a subdomain, because there we have no access or authority.

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    Well actually the first option should do the trick, but you need to get the correct path there, the one that is correct as per the rest of your server configuration.

    Also could you share with us:

    1. The print debug in the plugin settings page
    2. The print diagnostics in the plugin settings page
    3. Your website url (if possible)

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Aah, now I see what is going on!

    The thing is that the theme has set an image of 300px width at that point, but the total device width is larger than that and allows for other elements to appear next to the image to cover the available horizontal space.

    This is something that the Adaptive Images plugin cannot tackle unfortunately. It is the theme’s job to take care of the layout!

    However, you could possibly inject some CSS bits that will make the image span full width in such devices. You could do it via a child theme or the WordPress customizer, I guess. Is this something you can take care yourself? Otherwise you would need to ask some developer to help you.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    Nice question!

    First of all the plugin does not take into account the dimensions of the HTML containers where the images lie. This is the job of the theme! It does take into account the dimensions of the device (and of course this is combined with plugin settings such as HiDPI and Device orientation).

    Given the above the plugin only resizes images that need to be resized. For instance if the device width is 1024px and the closest highest plugin breakpoint is 1024px and the image is smaller that 1024px then the image will not be resized at all and its original version will be served.

    I am not sure if this answers your question, but do let me know if you need anything else.

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    Thank you for reaching out!

    As far as I can see by checking your website the images seem to be loading as expected. And the debug output is fine, too. Could you possibly direct me to where exactly the problem is or perhaps send a screenshot of the problem?

    Other than that the loading of the (Adaptive) images should not have anything to do with the exact version of the phone you are using. Only the dimensions should matter!

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Thank you for the conversation and the nice ideas, Jonas.

    It’s all very interesting indeed and I would love to hear any additional feedback!

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, @gnuworld,

    This is all very interesting, thank you very much for bringing this up!

    Well, one issue is that the image compression utility we are using right now is the one readily available by PHP, that is the PHP GD image library. Unfortunately, it is one that cannot get too aggressive without much compromising quality and it does not provide all the intricate optimization settings that an application like Photoshop or an online image optimization service do. There is no “save for web” here!

    Then again, the plugin is specifically designed to not be dependent on external tools or services! However, combining the plugin with such an external tool or service could be an option, perhaps as a new feature in the future or even as a pro feature.

    Also, having a different JPEG quality setting for HiDPI (retina) devices could also indeed be a possible new feature in the future. I am not too keen about it at first glance, because it would double the amount of generated images in the cache. Also the size of the images produced is not actually double, it is less, well, depending on the image and its colors, of course. But it could be a solution.

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, @chamois_blanc and thank you for your proposals.

    However:

    1) The user-settings.php is a special file that the plugin needs to store the user settings (which are already in the database) in order to use for image requests which hit the adaptive-images-script.php directly. There is no reason to put it elsewhere, we prefer the plugin to be as self contained as possible.

    2) There are many-many edge cases and scenarios that this approach would simply not be enough. It would be enough if WordPress was always installed in the root directory of the server and the site url was the same as the wp-content url.

    3) As I said in [1] the user settings are indeed in the database, but we need to store them elsewhere as well, because, when image requests arrive to a website we do not want to load the whole of WordPress for each and every one of them.

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    What you probably need to do is write a media query. You can find more info on this in websites such as https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries or even search for it in Google.

    Cheers,
    Takis

    Plugin Author Takis Bouyouris

    (@nevma)

    Just for the history of it: the ticket was handled privately and is now complete. The issue had to do with finding the correct NginX configuration files and applying the Adaptive Images setting there.

Viewing 15 replies - 91 through 105 (of 1,405 total)