0

I use BlueImp-jQuery-fileupload with MVC5/C# backend to upload JPGs. On the client I need a pre resize and on the server I need the JPG with its full original EXIF for further processing. The problem is with tall photos. I've tried several combinations with the options. Non gave me everything ....

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

Ends up not corrected (sideways) on the server.

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

Gets them double corrected (?) (head down) on the server.

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

Gets the orientation OK but skips the resize.

Here is the full code:

<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>

Can anyone help resolve?

1
  • You've missed out the comma on the end of imageOrientation: true on the 2nd and 3rd examples Commented May 12, 2024 at 18:36

1 Answer 1

1

Try to perform a test this way:

$('#fileupload').fileupload({
   imageQuality: 0.7,
   imageForceResize: true,
   disableImageResize: false,
});
Sign up to request clarification or add additional context in comments.

1 Comment

Sorry for my later response. I will try that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.