#Insert Image dialog
- Image source drop-down
- Remote URL
- Local file
- Local capture
- Source specific controls
- URL input + fetch button for remote. (Maybe a fetch local/remote toggle?)
- Drop zone/file input button for local file
- List of local cameras and available sizes for local capture, with a way to select the preferred option.
- Preview display Including image data (width/height/type/filename) and tools (crop, resize, rotate, rename)
- alt text
- nsfw flag??
- Comit button
- Upload
- Suggest random filename?
- Receive allocated filename
- Check if requested filename is available?
Image backend
Need to receive image data + filename and stash it somewhere (options.uploadPath
). Again with the meta data. Would be nice to validate image data at upload time, get things like width/height/type, and stash it so I don't need to get it again.
I'd forgotten about alt tags, and so absolutely need meta data. Why not a file called blah.meta
? (Standard reasons are things like: It can get out of sync, or vanish)