Skip to content

Commit

Permalink
Merge pull request #4658 from kobotoolbox/4657-fix-animated-pictures
Browse files Browse the repository at this point in the history
Support animated pictures on drap&drop upload with Admin markdown editor.
  • Loading branch information
JacquelineMorrissette committed Sep 26, 2023
2 parents 79026a6 + 3b30d1c commit cceed5c
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 cceed5c

Please sign in to comment.