JQuery-File-Upload BlueImp文件上传EXIF方向旋转

问题描述

我将BlueImp-jQuery-fileupload与MVC5 / C#后端一起使用来上传JPG。 在客户端上,我需要预调整大小,在服务器上,我需要带有完整原始EXIF的JPG,以便进行进一步处理。 问题出在高大的照片上。我已经尝试了几种与选项的组合。非给了我一切....

        imageOrientation: false,previewOrientation: false,previewThumbnail: false,imageMaxWidth: 1111,imageMaxHeight: 1111,disableImageResize: false,imageQuality: 0.8

最终在服务器上没有得到纠正(横向)。

        imageOrientation: true
        previewOrientation: false,imageQuality: 0.8

在服务器上对它们进行两次更正(?)(低头)。

        imageOrientation: true
        previewOrientation: false,disableImageResize: true
        imageQuality: 0.8

确定方向,但跳过调整大小。

这是完整的代码:

<script>
    var $form = null;
    $(function () {
        $form = $('#fileupload').fileupload({
            dataType: 'json',imageOrientation: false,imageQuality: 0.8
        });
    });
    $('#fileupload').addClass('fileupload-processing');
</script>

任何人都可以帮助解决吗?

解决方法

尝试以这种方式执行测试:

$('#fileupload').fileupload({
   imageQuality: 0.7,imageForceResize: true,disableImageResize: false,});

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...