Skip to content

Commit cceed5c

Browse files
Merge pull request #4658 from kobotoolbox/4657-fix-animated-pictures
Support animated pictures on drap&drop upload with Admin markdown editor.
2 parents 79026a6 + 3b30d1c commit cceed5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kobo/apps/markdownx_uploader/forms.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ def save(self, commit=True):
2323
return reverse(
2424
'markdownx-uploader-file-content', args=(image_object.content.name,)
2525
)
26+
27+
@staticmethod
28+
def _process_raster(image, extension):
29+
"""
30+
Bypass markdownx resizing and upload image as-is
31+
"""
32+
return image

0 commit comments

Comments
 (0)