We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eeebca commit 9952680Copy full SHA for 9952680
djangocms_frontend/contrib/image/models.py
@@ -120,6 +120,9 @@ def img_src(self):
120
# in this case we want to return an empty string to avoid #69
121
elif not self.picture:
122
return ""
123
+ # skip image processing when there's no width or height defined
124
+ elif not self.width and not self.height:
125
+ return self.rel_image.url if self.rel_image else ""
126
127
picture_options = self.get_size(
128
width=self.width or 0,
0 commit comments