mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fix bug in image process logic that wouldn't resize the height. Also make it possible to choose files from android as well as pictures directly.
This commit is contained in:
parent
fcc79456fd
commit
b3454b1c24
|
@ -373,7 +373,7 @@
|
|||
<label class="col-md-3 control-label" for="image">{{ trans('general.image_upload') }}</label>
|
||||
<div class="col-md-5">
|
||||
<!-- {{ Form::file('image') }} -->
|
||||
<input type="file" id="file-upload" accept="image/*" capture="camera" name="image">
|
||||
<input type="file" id="file-upload" accept="image/*" name="image">
|
||||
{!! $errors->first('image', '<span class="alert-msg">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -561,7 +561,7 @@ $(function () {
|
|||
newWidth = maxWidth;
|
||||
} else {
|
||||
newWidth = width * (maxHeight/height);
|
||||
newHeight = height;
|
||||
newHeight = maxHeight;
|
||||
}
|
||||
var canvas = document.createElement('canvas');
|
||||
|
||||
|
|
Loading…
Reference in a new issue