Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There has been so many requests regarding "live computation" during node add/edit. Here's how i got mine working without breaking anything. This link pointed me to the right direction.
Create a custom module. Change all instances of MYMODULE to the name of your module
The cover image format resizes an image down (or optionally up) to the smallest
size that completely covers the specified height and width while maintaining
ratio.
It works exactly like Client-side adaptive image, but print div tag with image un background style which can be more easy to integrate in some specific design cases.