-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grav's Responsive Images functionality not working/working differently #1136
Comments
From which dropdown you select an image? A |
I tried uploading a
|
I select the file using a Sorry, when I said markdown I meant within the Frontmatter. The image is output in the template as follows:
|
I think this change getgrav/grav-plugin-admin@a42fd33 is going to fix your issue. You can try it now by downloading the latest develop branch of Admin from https://github.com/getgrav/grav-plugin-admin/archive/develop.zip |
As far as being able to select the image from the dropdown - that seems to be fixed by using the admin plugin fix you mentioned. However, the main issue is still there. I'm still getting an error message from Grav Core (I believe) on the frontend of the site, when using these images. I assume it's something to do with the automatic generation of these responsive images. |
I've not been able to recreate it yet, I wonder if it's a Grav issue or rather a GD library issue http://stackoverflow.com/questions/20614686/gd-warning-product-of-memory-allocation-multiplication-would-exceed-int-max |
How big is your image? Can you attach it here so I can test with it? |
Thanks, I tried but I can't replicate any error when using the images locally. |
Is that replicating uploading the image on v1.0.10 and then upgrading Grav v1.1.8? |
This was introduced due to my changes in #1107. Sorry about that! Submitted a PR that should fix the problem |
Just a note on this one – this bug would basically affect any case where users try to use image alternatives (either as supplied from disk, or generated by |
@flaviocopes @rhukster sorry about troubling you with this, but I think the change change might warrant a bugfix release – see my previous comment for details |
(https://learn.getgrav.org/content/media#responsive-images)
Since updating Grav (to 1.1.8) my client's site has been getting some errors relating to the responsive images support. In the admin plugin, when selecting an image from the dropdown it is now showing 'image@3x.jpg' - previously that would have been 'image.jpg' - because the responsive images functionality within Grav would have done it's magic and generated 3 images (i.g. image.jpg, image@2x.jpg and image@3x.jpg).
If the image is set to just 'image.jpg' within the markdown itself, then an error occurs:
The text was updated successfully, but these errors were encountered: