Как мне установить предварительный размер холста, я пытаюсь установить, но он не работает - PullRequest
0 голосов
/ 07 октября 2019

Я скачал демоверсию с https://github.com/blueimp/jQuery-File-Upload, и она отлично работает. Я хочу изменить размер холста предварительного просмотра по умолчанию с высотой = 158 и высотой = 139. Я пытаюсь изменить его на jquery.fileupload-image.js:

$.widget('blueimp.fileupload', $.blueimp.fileupload, {
    options: {
      // The regular expression for the types of images to load:
      // matched against the file type:
      loadImageFileTypes: /^image\/(gif|jpeg|png|svg\+xml)$/,
      // The maximum file size of images to load:
      loadImageMaxFileSize: 10000000, // 10MB
      // The maximum width of resized images:
      imageMaxWidth: 1920,
      // The maximum height of resized images:
      imageMaxHeight: 1080,
      // Defines the image orientation (1-8) or takes the orientation
      // value from Exif data if set to true:
      imageOrientation: false,
      // Define if resized images should be cropped or only scaled:
      imageCrop: false,
      // Disable the resize image functionality by default:
      disableImageResize: true,
      // The maximum width of the preview images:
      previewMaxWidth: 158,
      previewMinWidth: 158,
      // The maximum height of the preview images:
      previewMaxHeight: 139,
      previewMinHeight: 139,
      // Defines the preview orientation (1-8) or takes the orientation
      // value from Exif data if set to true:
      previewOrientation: true,
      // Create the preview using the Exif data thumbnail:
      previewThumbnail: true,
      // Define if preview images should be cropped or only scaled:
      previewCrop: false,
      // Define if preview images should be resized as canvas elements:
      previewCanvas: false
    },
//...

Но изменяется только ширина холста, и я пытаюсь установить previewCanvas, но холст все еще там. Как установить размер холста для предварительного просмотра?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...