ocument.getElementById('fileInput');
    const output = document.getElementById('output');
    const imgDataUri = document.getElementById('imgDataUri');
    const qualityRange = document.getElementById('qualityRange');
    const qualityValue = document.getElementById('qualityValue');
    const jpegSize = document.getElementById('jpegSize');
    const viewToggle = document.getElementById('viewToggle');
    const previewHint = document.getElementById('previewHint');
    const previewText = document.getElement