Skip to content

Commit

Permalink
Bypass Django Markdownx image resizing on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
noliveleger committed Oct 30, 2023
1 parent 0940370 commit 986175e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kobo/apps/markdownx_uploader/forms.py
Expand Up @@ -23,3 +23,10 @@ def save(self, commit=True):
return reverse(
'markdownx-uploader-file-content', args=(image_object.content.name,)
)

@staticmethod
def _process_raster(image, extension):
"""
Bypass markdownx resizing and upload image as-is
"""
return image

0 comments on commit 986175e

Please sign in to comment.