-
Notifications
You must be signed in to change notification settings - Fork 223
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
Support for inline background images #88
Comments
Hello, There is no plan yet but that should not be that difficult to add as it is the same replacement logic. Instead of doing image.src = newUrl it would be image.style.backgroundImage = newUrl. In any case, this is something you can achieve through CSS and media queries. Which is not the case of regular image SRC. |
Would be great. I can't use media queries as a CMS is outputting all the inline background images. |
👍 okay, I'll check this out then. |
Is there any update or progress on allowing Imager.js to work on inline background images? |
@iainspad not at the moment: I started something without ever finishing it. If you have an idea on how to do it, please propose something (or explain first how you would do if you are not comfortable yet to propose code). |
+1 |
Looks like this has already been done as part of this fork: https://github.com/firegoby/Imager.js Demo here: http://firegoby.com/imager-cssbackgrounds/ Will this be something you plan on adding? |
Hey guys, the work has been documented in the Feedbacks appreciated! |
Any chance at this landing within the next month or so? The use case is this: You want an image to be controlled by a cms or database field .. and output as an inline background image, such as |
Hi, do you have any plans to support replacing inline style background images? Or would you recommend turning the already replaced
<img>
tags to whatever I need using theonImagesReplaced
event?Looks like this fork implemented it: https://github.com/firegoby/Imager.js
The text was updated successfully, but these errors were encountered: