Changeset 35786


Ignore:
Timestamp:
2021-12-09T16:34:09+13:00 (2 years ago)
Author:
cstephen
Message:

Assign internal blob type, allowing image to be properly saved and opened externally by user.

Location:
main/trunk/model-interfaces-dev/atea/ocr/src/components
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/ocr/src/components/MainPage.vue

    r35785 r35786  
    5353
    5454            const arrayView = new Uint8Array(newValue);
    55             const blob = new Blob([ arrayView ]);
     55            const blob = new Blob([ arrayView ], { type: this.imageType });
    5656            this.imageUrl = URL.createObjectURL(blob);
    5757        }
     
    144144         */
    145145        onEditorSave(newBuffer, newType) {
     146            this.imageType = newType;
    146147            this.imageBuffer = newBuffer.buffer;
    147             this.imageType = newType;
    148148
    149149            this.onEditorCloseRequested();
  • main/trunk/model-interfaces-dev/atea/ocr/src/components/OcrImageDisplay.vue

    r35779 r35786  
    235235    grid-row: 1;
    236236    grid-column: 1;
     237    user-select: none;
    237238}
    238239
Note: See TracChangeset for help on using the changeset viewer.