Allow all image formats (image/*) upload for architecture diagrams and dataflow diagrams. For 'image/png', 'image/gif', or 'image/jpeg', run the browser-image-compression plugin; for other images, keep the original format. The total number bytes of the resulted base64 encoded image is checked to ensure it is less than 1MB.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
84
Description of changes:
Allow all image formats (image/*) upload for architecture diagrams and dataflow diagrams. For 'image/png', 'image/gif', or 'image/jpeg', run the browser-image-compression plugin; for other images, keep the original format. The total number bytes of the resulted base64 encoded image is checked to ensure it is less than 1MB.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.