[英]JQuery-File-Upload BlueImp file upload EXIF orientation rotation
我使用帶有 MVC5/C# 后端的 BlueImp-jQuery-fileupload 來上傳 JPG。 在客戶端我需要預先調整大小,在服務器上我需要帶有完整原始 EXIF 的 JPG 以進行進一步處理。 問題在於高照片。 我已經嘗試了幾種與選項的組合。 非給了我一切....
imageOrientation: false,
previewOrientation: false,
previewThumbnail: false,
imageMaxWidth: 1111,
imageMaxHeight: 1111,
disableImageResize: false,
imageQuality: 0.8
最終在服務器上未更正(橫向)。
imageOrientation: true
previewOrientation: false,
previewThumbnail: false,
imageMaxWidth: 1111,
imageMaxHeight: 1111,
disableImageResize: false,
imageQuality: 0.8
讓他們在服務器上雙重更正(?)(低頭)。
imageOrientation: true
previewOrientation: false,
previewThumbnail: false,
imageMaxWidth: 1111,
imageMaxHeight: 1111,
disableImageResize: true
imageQuality: 0.8
獲取方向確定但跳過調整大小。
這是完整的代碼:
<script>
var $form = null;
$(function () {
$form = $('#fileupload').fileupload({
dataType: 'json',
imageOrientation: false,
previewOrientation: false,
previewThumbnail: false,
imageMaxWidth: 1111,
imageMaxHeight: 1111,
disableImageResize: false,
imageQuality: 0.8
});
});
$('#fileupload').addClass('fileupload-processing');
</script>
誰能幫忙解決?
嘗試以這種方式執行測試:
$('#fileupload').fileupload({
imageQuality: 0.7,
imageForceResize: true,
disableImageResize: false,
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.