When the Enable responsive friendly upload setting is enabled in the settings panel the plugin will generate the following responsive image sizes:
Name
Largest Dimension
large
1000px
medium
750px
small
500px
These sizes can be overridden in config/plugins.js:
so do you mean the reason for API response missing the Medium image format is because i haven’t override with config/plugins.js ???
so in another words, the override will solve the issue of missing image formats?
sorry i haven’t found any other content related to
It depends on the size of the original file as to what formats it will generate
I am also having the same issue and facing problem to inject proper url in my frontend. All time I have check the img format is available or not.
Has anyone got the reason behind this?
UPDATE: I think I get the reason. When the size of an img is below 500px, it provides neither the medium nor the small format. Because the size of small format is 500px and that img is already smaller than 500px. However, if we create custom formats, like 64px, it does provide that format. Awesome!
I think I’ve just run into this as well.
This was frustrating for me as in testing I must have sampled files > the limit and so had used one that didn’t end up being used in production.
so long story short; code defensively around the image formats as you never know what you’re going to get based on people uploading files via the GUI.