mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:06:06 -04:00
Generate thumbnail client side and send its URL and info with the image message body
This commit is contained in:
parent
9d4bc8985f
commit
aac52fce15
3 changed files with 149 additions and 28 deletions
|
@ -23,7 +23,7 @@ angular.module('mUtilities', [])
|
|||
.service('mUtilities', ['$q', function ($q) {
|
||||
/*
|
||||
* Get the size of an image
|
||||
* @param {File} imageFile the file containing the image
|
||||
* @param {File|Blob} imageFile the file containing the image
|
||||
* @returns {promise} A promise that will be resolved by an object with 2 members:
|
||||
* width & height
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue