awslabs / threat-composer

A simple threat modeling tool to help humans to reduce time-to-value when threat modeling
https://awslabs.github.io/threat-composer/
Apache License 2.0
444 stars 52 forks source link

feat: Support other image formats for architecture diagrams and dataflow diagrams. Close #84 #88

Closed jessieweiyi closed 7 months ago

jessieweiyi commented 7 months ago

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.

github-actions[bot] commented 7 months ago

:tada: This PR is included in version 1.0.34 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: