[Webkit-unassigned] [Bug 258467] New: Camera RAW files picked via file input are returned as PNG on change

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 23 10:16:40 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=258467

            Bug ID: 258467
           Summary: Camera RAW files picked via file input are returned as
                    PNG on change
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sblochwehbas at adobe.com

Our app accepts a number of file formats, including many RAW image types. The images are accepted via an <input type="file" />.

Currently in Safari 16.5, STP 172 and WK build 265418 at main we see that images imported with file extensions .raf or .cr3 are passed to our input's onchange handler as a .png.

Because the file is given to us as a .png we misidentify its content. For .raf files this means that we fail to render it - our WASM backend fails to interpret the data correctly and returns an error. For .cr3 files our wasm backend interprets the file as .png and skips some important steps in the user journey for adding raw files.

The full set of file extensions that we accept currently is as follows:

['psd', 'psb', 'png', 'jpeg', 'jpg', 'tiff', 'tif', 'psdc', 'heic', 'heif', 'webp', 'crw', 'nef', 'raf', 'orf', 'mrw', 'dcr', 'mos', 'raw', 'pef', 'srf', 'dng', 'x3f', 'cr2', 'erf', 'sr2', 'kdc', 'mfw', 'mef', 'arw', 'nrw', 'rw2', 'rwl', 'iiq', '3fr', 'fff', 'srw', 'gpr', 'dxo', 'arq', 'cr3']

I haven't tested each of these exhaustively to check Safari's behaviour but I can do so if necessary - ideally we don't want any conversion performed before we receive the file's name, type and body regardless of its format.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230623/cdb96b7d/attachment-0001.htm>


More information about the webkit-unassigned mailing list