Takis Bouyouris
Forum Replies Created
-
Forum: Plugins
In reply to: [Adaptive Images for WordPress] I installed the plugin but It… doesn’t work?Hello @kaioken,
The issue you are describing is a CSS-related one I’m afraid. See here https://prnt.sc/p9yed2/. It is one that the Adaptive Images plugin cannot solve.
You can try and set the background-size CSS property to either cover or contain (https://prnt.sc/p9yg25/) but I do not think either of these will do what you want. Actually it is impossible to fit a landscape image nicely into a portrait container. It either has to stretch or leave some portion of the container uncovered.
Our plugin does something entirely different. It resizes images on the fly, so that mobile devices download smaller sizes, but it does not mess with the website’s styling or layout.
@duckieloan456 could you clarify your message please?
Cheers,
TakisForum: Reviews
In reply to: [Adaptive Images for WordPress] Works great, does wonders !Once again, thank you for your kind words!
🙂
Forum: Plugins
In reply to: [Adaptive Images for WordPress] Thank you !Hello, @yves, thank you for your kind words!
Just for the history of it, the Adaptive Images plugin will always be compatible with any solution (Gutenberg or not) for responsive images because of the transparent and unobtrusive way it functions.
Cheers,
TakisForum: Reviews
In reply to: [Adaptive Images for WordPress] Just one word: Fantastic!Thank you for your kind words, my friend!
You are welcome, let me know if you need any further assistance!
Cheers,
TakisThe Adaptive Images plugin chooses the closest possible dimension always checking upwards (so that in the process it won’t produce worse quality images than what is required).
Of course this is only meaningful when the images themselves are already big enough so that they can be downsized. If an image is already small enough for a specific request from a specific device then it will not be downsized at all (the original image will be sent).
So, you should set your breakpoints thinking in final pixels. In the case of the iPhone of 375px width then, when the HiDPI support is checked, it will be regarded as a 1125px screen. So if the breakpoints are set as “320, 480, 1024, 1280” then the 1280 size should be used (that is if the original image itself is already bigger than that).
As you may have already understood, this can easily lead to no downsizing at all, if one wants to serve very good quality images even to the smallest devices. But this, in a way, goes contrary to the initial concept of the Adaptive Images plugin.
Personally, I would not really mind even having the HiDPI support disabled, because I would prefer to give priority to speed! But I let my users have the option.
Cheers,
TakisForum: Plugins
In reply to: [Adaptive Images for WordPress] Does it work with other caching plugins?Thank you very much, I received your email and I will take it from there! 🙂
Forum: Plugins
In reply to: [Adaptive Images for WordPress] Does it work with other caching plugins?Hello, my friend,
Thank you also for your time and your kind words!
Indeed this is the case and during the course of the years I have come to realise that not all users use the same technique to achieve this and this has been the cause for these minor discrepancies.
One can put WordPress in its own subdirectory and either make all urls (including the static ones in the /wp-content directory) appear as if they originate from the root url or one can let the static ones appear originating from their actual directory.
So in case 1 you have:
http://www.domain.comfor the domain andhttp://www.domain.com/wp-contentfor the /wp-content, whilst in case 2 you still havehttp://www.domain.comfor the domain but you havehttp://www.domain.com/subdir/wp-contentfor the /wp-content (and of course same for /wp-admin and /wp-includes).(These cases are explained here https://wordpress.org/support/article/giving-wordpress-its-own-directory/!)
We have properly taken care of case 1 but it seems that we missed case 2! What you are describing for your installation is actually case 2.
Although I am not particularly a big fan of this technique at all (it mostly creates causes for edge cases without much enhancement in security) this case is now under my radar and I will work on fixing it in future versions!
Cheers,
TakisForum: Plugins
In reply to: [Adaptive Images for WordPress] Does it work with other caching plugins?Hello, my friend,
Thank you for all this info!
What you are saying makes sense. And indeed it is not a nice thing having to manually edit the htaccess file every time you save the plugin settings. This is not how it is supposed to work.
I am trying to figure out exactly why this happened in your installation. Is your installation actually in a subdirectory, like http://www.domain.com/site/? Or have you kept the root domain of your WordPress, but installed it in the subdirectory? The problem must have something to do with this setup and the fact that we have possibly missed some sort of condition.
Lastly, we would love it if we had the chance to debug this issue first-hand in the actual or a staging environment. If you think this is possible you may contact us as at info [at] nevma [dot] gr.
Cheers,
TakisForum: Plugins
In reply to: [Adaptive Images for WordPress] Does it work with other caching plugins?Hello, there,
Normally WPRocket should not have compatibility issues with Adaptive Images. There a number of other possible reasons for problems. Most of them we try to address in the plugin description page, but it does require some reading! 🙂
As a starting point could you possibly send us the results of the Print debug and Print diagnostics buttons in the Adaptive Images settings page?
Cheers,
TakisYou are very welcome, let me know how it goes and if you need any further assistance! 🙂
Cheers,
TakisHello, my friend,
First of all, the Adaptive Images plugin only creates images in the cache when it is necessary to do so, in order to reduce the possible server load. This means that, if an image is not requested by a device small enough (ie small enough relative to the original image size and the breakpoints one has set in the plugin settings page), then the image will not be created in the cache (the original image will be delivered).
However, something else might also be relevant to your case. I see that your requests are served via an NginX server which probably acts as a proxy (or a caching server). Is that correct?
If this is correct, then the NginX server is acting like a small scale CDN. This is an exceptional case for our plugin and it is described in the plugin description page under “CDN/Varnish/external caching services”. Basically, this is a case we do not fully support, due to the way caching servers work: they deliver your images directly, thus your WordPress installation (and our plugin) does not have the opportunity to handle (and resize) your images. Thankfully this does not pose a problem, but it reduces the effectiveness of the plugin.
Now, for these cases we have created a special mode, called “CDN support”, in the plugin settings page, which you are welcome to enable and test. Unfortunately, this mode is still a bit experimental as it cannot detect CSS background images.
Let me know if I can help any further with this!
Cheers,
TakisForum: Plugins
In reply to: [Adaptive Images for WordPress] Can’t make it workHello, again my friend,
I am afraid you misunderstand what the plugin does. What you are asking can only be accomplished via HTML and CSS and the proper media queries in order to make your layout responsive. Our plugin does not handle such situations. Actually it is one of its top priorities to work transparently and not mess with the pages’ layout and let the HTML and CSS handle it.
What the Adaptive Images plugin can actually do is to resize any image while it is being transferred to the browser and not as it is being displayed in it! This way it reduces download times. But the layout is the job of the HTML and the CSS that you use.
Let me know if you need any further assistance!
Cheers,
TakisForum: Plugins
In reply to: [Adaptive Images for WordPress] Can’t make it workHello, again,
Actually it works for all devices, not only mobile devices and tablets. But in desktop devices you usually do not need it that much because they are connected to the internet via fast connections and they have more space to show all the details of bigger images. But it still works there, too!
What image size will eventually be shown depends on the combination of a) the device size, b) the image size and c) the breakpoints that you have set in the plugin settings page.
But note that the plugin checks the device size and not the size of the HTML container element in which the image is placed. The latter would be almost impossible to achieve!
Hope this helps.
Cheers,
TakisForum: Plugins
In reply to: [Adaptive Images for WordPress] Can’t make it workHello, my friend,
First of all, let me explain a little bit how the plugin works, because it is true that Gtmetrix might not be able to detect what the plugin actually does. Gtmetrix is simply reading your HTML and CSS and provides advice based on best practices. It is not an actual mobile device. What the Adaptive Images plugin does is to resize images in the background when actual devices with real screen dimensions request for them. And it sends resized versions of the images without the devices knowing how this happened – it works totally transparently.
Now I am not sure if this is your case, but we need to make sure that your installation is indeed properly setup for Adaptive Images. The easiest way to do so is to visit your website via your browser’s responsive web design mode in its developer tools and inspect the images delivered there. Another way is to simply add
?debug=trueat the end of an image url and see if you get the debug output from the Adaptive Images plugin (if you only see the image and not the debug output, then the plugin is not yet working as expected).Also you can send me your website url and I could look into it for you as well.
Cheers,
Takis