generated from hjess/PythonTemplateProject
[main] Images images images
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 55s
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 55s
This commit is contained in:
Binary file not shown.
@@ -168,10 +168,10 @@ class ImageService:
|
||||
self.validate_image( file_path, width = width,height=height, overwrite = True )
|
||||
|
||||
tag = f'<img src="/{file_path.dest_filename_webp}" alt="{alt}"'
|
||||
if width:
|
||||
tag += f' width="{width}"'
|
||||
if height:
|
||||
tag += f' height="{height}"'
|
||||
# if width:
|
||||
# tag += f' width="{width}"'
|
||||
# if height:
|
||||
# tag += f' height="{height}"'
|
||||
if css_class:
|
||||
tag += f' class="{css_class}"'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user