Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.
C# audio-converteravaloniabatch-conversionconvertercsharpdocument-converterdocx-to-pdfdotnetdrag-and-dropfile-conversionfile-converterheic-converterhwphwpximage-converterlinuxmacospdf-convertervideo-converterwindows
Document files dragged from a browser
KnifeLemon23d324453e5e
diff --git a/README.ko.md b/README.ko.mdindex 9cfc61df..affce9f5 100644--- a/README.ko.md+++ b/README.ko.md@@ -62,6 +62,8 @@## 기능- **커서 옆 도넛**: 키를 누른 채 파일을 끌어 형식 위에 놓으면 끝. 파일에 맞는 형식만 나와요.+- **브라우저에서 바로**: Chrome, Edge, Firefox, Safari의 이미지, 파일 링크, 다운로드도 똑같이 끌어 놓으면 돼요. 다운로드+ 폴더에 저장하고(변환된 파일만 남길 수도 있어요) 변환해요. 링크는 브라우저 로그인 없이 내려받아요.- **파일 종류마다 툴바**를 드래그로 배치하고, 품질·크기·DPI·PDF 페이지와 압축·동영상·오디오·저장 위치·파일 이름을프리셋으로 정해요.- **여러 파일을 한 번에** 병렬로 변환해요. 여러 단계가 필요한 변환(HWP → HWPX → DOCX)도 알아서 찾아요.diff --git a/README.md b/README.mdindex 769de2e2..744d6ac6 100644--- a/README.md+++ b/README.md@@ -62,6 +62,9 @@ Filee shows new releases in its menu and updates itself, keeping your settings a## Features- **A donut at the cursor**: hold a key, drag files and drop them on a format. Only formats that fit the files appear.+- **Straight from the browser**: drag a picture, a link to a file or a download out of Chrome, Edge, Firefox or Safari the same+ way. Filee saves it to your Downloads folder (or keeps only the converted file) and converts it. Links are downloaded+ without your browser's sign-in.- **One toolbar per file type**, arranged by drag and drop, with presets for quality, size, DPI, PDF pages and compression,video and audio, output folder and file names.- **Many files at once**, in parallel. Routes with several steps (HWP → HWPX → DOCX) are found automatically.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 0b286be2..b8f65d24 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -62,6 +62,7 @@## 功能- **光标旁的圆环**,按住按键拖动文件,放到格式上即可。只显示适合这些文件的格式。+- **直接从浏览器拖**,Chrome、Edge、Firefox 或 Safari 里的图片、文件链接和下载项也能这样拖放。Filee 会保存到“下载”文件夹(也可以只保留转换后的文件)再转换。链接下载时不使用浏览器的登录信息。- **每种文件类型一个工具栏**,拖放排列。质量、尺寸、DPI、PDF 页面和压缩、视频音频、保存位置和文件名都能用预设设置。- **一次转换多个文件**,并行处理。需要多步的转换(HWP → HWPX → DOCX)会自动找到路线。- **监视文件夹**,放入的文件自动转换。diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 69aee0c4..1b800812 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -49,6 +49,46 @@"Compress into one archive" packs the dropped files, unconverted, with the archive engine (`IFileCombiner`).6. **Report** – progress and results appear in the toast window and in Home → Recent conversions.+## Files dragged from a web browser++A picture, a link to a file or a download dragged out of a browser opens the donut like a file from the file manager.+`DraggedFiles.Read` asks `BrowserDrags` (App, reads Avalonia's drag data) first; `BrowserDrag` (Core, pure rules)+decides what in the drag is a file:++| Source | What the drag carries | What Filee takes |+| --- | --- | --- |+| Chrome / Edge, Windows | the picture as a virtual file (`FileGroupDescriptorW` + `FileContents`, which Avalonia 12 gives as a storage item without a local path), a `.url` virtual file for links, `UniformResourceLocatorW`, `text/x-moz-url`, `HTML Format` | the picture's own bytes; for a link, its address |+| Firefox, Windows | the picture written to `%TEMP%` (`CF_HDROP`), `text/x-moz-url`, file promise formats | the temporary copy (a local file in the temp folder *and* a web address on the drag) |+| Chrome / Firefox, Linux | `text/x-moz-url`, `_NETSCAPE_URL`, `text/html` (Avalonia turns `text/uri-list` into local files only and drops http addresses) | the address |+| Safari / Chrome, macOS | file promises (not receivable through Avalonia), `public.url`, `public.html`, sometimes picture data | the address, else the picture data |++Rules, in order: files handed over with their bytes (never `.url` shortcuts or programs); a picture (an HTML fragment+that is one `<img>` and no text, or a Firefox file promise); a `DownloadURL` a page sets; links only when the address+ends in an extension Filee converts and isn't a web page (`.html`, `.php`, none); last, picture pixels for a `blob:`+picture. Plain text is never read. `data:` addresses are decoded.++Until the conversion runs, the files stand as **placeholders** (`WebDrop`): paths in `%TEMP%\Filee\web\<drop>\drop\<n>\`+named like the file will be, so the donut picks the profile by extension without touching the network. No HEAD request+is made: a picture without an extension stands as `.jpg` and a link without one isn't offered. `ConversionService.Start`+gives the job a `WebDropFetcher` (`ISourceFetcher`): `JobQueue` saves every source first (half of its progress), then+converts. Failures are per file (`error.web_*`), cancelling stops a download, and the job toast/ring shows both phases.++- **Where**: Settings → General → "Files dragged from a browser" (`AppSettings.BrowserDrops`): the user's Downloads+ folder (`IPlatformServices.DownloadsFolder`: the shell's known folder on Windows, `XDG_DOWNLOAD_DIR` on Linux,+ `~/Downloads` on macOS) or a chosen one. "Next to the source" means this folder for these files+ (`OutputRule.SourceFolder`, set per job, never saved), so subfolder rules apply there and fixed folders stay fixed.+- **Save only the converted file**: the original goes to the drop's work folder, which `Release` deletes when the job+ ends; leftovers from a crash are deleted at start-up after a day.+- **Downloads** (`WebDownloader`): http and https only, at most 5 redirects (never from https to http or off the web),+ 2 GB cap whether or not the server says the size, 30 s to answer and 30 s without data at most. No cookies or+ credentials are sent: a file behind a sign-in comes back as the sign-in page, which is refused as a web page+ ("save it from the browser first"). A browser's own bytes (virtual files, Firefox's copy) don't have that limit.+- **Names and safety**: Content-Disposition, else the page's name, else the address; then the first bytes decide the+ extension of pictures and PDFs (`.jpg` that is WebP becomes `.webp`). Names are cut to a plain file name (no folders,+ no device names, at most 120 characters) and never replace an existing file (`name (2).ext`). Programs, installers and+ scripts are refused by extension, media type and first bytes; nothing downloaded is ever run, and every file goes+ through the same converters as any other.+## Donut control`Controls/DonutMenu.cs` draws the ring itself (no child controls) for speed. `DonutGeometry.cs` holds the pure math@@ -93,7 +133,8 @@ On macOS, files reach Filee from file managers other than Finder too (issue #160`NSFilenamesPboardType` array of paths (`PasteboardPaths`); the service also takes plain-text lines that are absolutepaths. The donut registers those types with AppKit next to Avalonia's own, so such a drag reaches it, and a drag orservice request without readable files is logged with the types it offered. File promises (`NSFilePromiseProvider`)-can't be received through Avalonia. A click-mode donut opened for a later launch or the service forgives one loss of+can't be received through Avalonia; for a browser drag Filee reads the address and HTML it also offers, which the donut+registers too (see "Files dragged from a web browser"). A click-mode donut opened for a later launch or the service forgives one loss offocus within a second of opening (`ActivationGrace`): Filee becoming the active app can take focus away from it.## Explorer integration