github snapotter-hq/SnapOtter v2.4.0

2 hours ago

SnapOtter v2.4.0

Upgrade if more than one person uses your instance. 2.4.0 closes a high-severity advisory: batch, pipeline and PDF-to-image results could be downloaded by anyone who had the job id.

Most of the new tools came from your feedback: Optimize SVG, PDF to Markdown, Convert Font, Convert Subtitles, Resize PDF Pages for 4x6 shipping labels, Merge Text Files, Base64, Convert Case, and aspect-ratio and proportion calculators. Converting to AVIF keeps animation now, and there's a new video-to-AVIF. Crop PDF can cut a page down to a region.

GPU hosts got faster. Native and LXC installs that only have cuDNN from pip were quietly running ONNX models on the CPU, and that's fixed. NVIDIA GPUs under WSL2 are detected. The AI sidecar now starts on first use and exits when idle, which gives back about 2 GB of RAM on a quiet server.

New installs no longer force password complexity rules. Existing installs keep theirs.

Important

GHSA-jh4x-x7c5-v6vh affects 2.3.0 and earlier. If other people use your instance, or it's reachable from outside your network, upgrade.

Security

  • Batch, pipeline and PDF-to-image results were downloadable under a client-chosen job id (GHSA-jh4x-x7c5-v6vh, high). These routes used the clientJobId sent by the browser as the storage key, and the download route doesn't need a login, so anyone who guessed or obtained another user's batch id could fetch that user's results. The server now picks the id itself, and the download route refuses internal payload files. Affected: 2.3.0 and earlier. (#4476)
  • Session tokens are stored as a SHA-256 hash. The sessions table used to hold the raw token, so anyone who could read the database, a dump or a volume snapshot could reuse every live session. Existing sessions are rehashed during the upgrade, so nobody gets signed out. (#4986)
  • Database query parameters no longer reach Sentry (privacy fix). On 2.3.0, a failed database query could put its parameters into a crash report title, including session ids, which work as bearer credentials. Crash reports now keep only the SQL text, and a lost database connection is reported as an outage, not a bug. (#4676)
  • Requests are authenticated before their bodies are read. Anonymous requests are refused before parsing, login and MFA bodies are capped at 16 KiB, and SCIM and job-cancel bodies have their own small caps. (#4633, #4562, #4650, #4635)
  • Smaller fixes: the enterprise webhooks gate is enforced, and the GDPR export status route refuses the anonymous user. (#4459, #5398)
  • Patched dependencies: the image runs Node 22.23.4 for CVE-2026-111497 (#4464), and the OpenTelemetry packages in the AI venv move to 1.45.2 for CVE-2026-126360 (#4654). Updated tar, ws and minimatch to patched versions. (#5413)

New Features

  • Optimize SVG: minifies SVG with svgo and keeps it as SVG. Compress and Optimize for Web rasterize SVG, so there was no way to do this before. (#5076, #5299)
  • PDF to Markdown, for anyone moving documents into a wiki, a static site or an LLM pipeline. (#5075)
  • Convert Font between TTF, OTF, WOFF and WOFF2, with one-click presets such as OTF to TTF and TTF to WOFF2. (#5079, #5175)
  • Convert Subtitles between SRT, WebVTT and ASS, plus SRT-to-VTT style presets and an output format choice on Extract Subtitles. (#5073, #5171)
  • Resize PDF Pages: fit every page onto a target size, built for turning a Letter or A4 shipping label into a 4x6 thermal label. (#5078)
  • Crop PDF to a region or per-side margins, so you can cut a page down to the label in one corner. (#5144, #5307)
  • Merge Text Files: join text, Markdown, CSV and log files in the order you set. (#5070)
  • Text utilities: Base64 encode and decode, Convert Case, an aspect-ratio calculator and a proportion (rule of three) calculator. (#4996, #5025, #5068, #5067)
  • Animated AVIF: converting a GIF or WebP to AVIF keeps every frame, and video-to-AVIF is new. (#5033)
  • Images to animated GIF or WebP: Images to Video can now build an animation instead of only an MP4. (#5062)
  • Every audio format pairing has its own converter, so searches like "opus to mp3" or "mp3 to ogg" find a tool. (#5066)
  • Text Overlay wraps long captions, takes a custom position, and lets you drag the text box over the preview. (#5044, #5285, #5333)
  • Trim Video and Trim Audio accept timecodes like 1:30 or 1:02:03.5, and have a mode that cuts from both ends at once. (#4977)
  • Strip all metadata from a PDF: Info fields, XMP on pages and images, and optionally embedded attachments. (#4998, #5224, #5318)
  • Smart Crop's trim mode has a margin control. (#4971)
  • A level grid while straightening in the Rotate tool. (#4962)
  • Sony .hif photos are accepted as HEIF. (#5023)
  • Cancel an AI bundle install, queued or running, and the Accurate OCR install too. After an install, SnapOtter points you at the tools it unlocked. (#4990, #5238, #5050)
  • Large photos on CPU upscale get reduced to fit instead of refused, and the tool warns you before the run. (#5041, #5140)
  • pdf-to-text offers OCR afterwards when some pages had no readable text. (#5169)
  • A Getting Started block on the home page for new installs, and the first-run sign-in screen shows the default admin / admin login. (#4976, #4852)
  • Job status API: GET /api/v1/jobs/:jobId returns status, progress, result and error. Every JSON error now carries a stable code and a requestId, and every 202 response has a Location header. The API reference is translated into all 21 languages. (#4398, #4390)
  • Embedded database ports and passwords: the all-in-one image can move its Postgres and Redis ports and generate per-install passwords, for --network host setups. (#4581)
  • HOST sets the address the API listens on, so a native install can bind 127.0.0.1. (#4574)

Improvements

  • ONNX tools use the GPU on native and LXC installs. When cuDNN came only from pip wheels, onnxruntime fell back to the CPU without saying so, so background removal and the other ONNX tools ran slowly and reloaded their model on every request. One background-removal call on an RTX 4070 went from 14.8 s to 0.9 s. If a small GPU now runs out of memory partway through a job, set SNAPOTTER_GPU=0 to keep AI tools on the CPU. (#5375, #4924, #5377, #5378, #5388)
  • NVIDIA GPUs under WSL2 are detected, as are containers given only a GPU other than the first. Because of this, the share of instances reporting a GPU in our anonymous analytics steps up with this release. That's a measurement fix, not growth. (#4572, #4449)
  • AI tools stop holding memory while idle. The Python sidecar and the Accurate OCR runtime used to sit on about 2 GB from boot. They now start on the first AI request and exit after 10 minutes idle (AI_SIDECAR_IDLE_TIMEOUT). (#4802, #4814)
  • Face tools run on x86-64 CPUs without AVX. MediaPipe is pinned to a release that doesn't need AVX, and the bundles were rebuilt. SnapOtter can now also refuse a bundle up front when a CPU can't run it, instead of after a multi-GB download. (#4772, #4722, #4680)
  • High-quality Erase Object stops inventing objects. It fills the masked area from its surroundings first and then refines it at strength 0.95, so plain water no longer grows a jet ski. Its SD15_INPAINT_* settings now actually reach the model. (#5374, #5000, #5388)
  • Erase Object fills are sharper and blend into the seam. (#4905, #5016, #4643)
  • Background removal on GPU: Ultra steps down to General instead of failing when it runs out of memory, and HR matting no longer overruns a small GPU's VRAM. (#4761, #4754)
  • Transcribe Audio and Auto Subtitles retry on the CPU when the GPU is out of memory, for example on a card shared with another app, instead of failing the job. (#5421)
  • Model downloads honour HF_ENDPOINT, for hosts that need a Hugging Face mirror. (#4967, #5243)
  • Office conversions keep their layout: the image ships Carlito and Caladea, metric-compatible stand-ins for Calibri and Cambria, and aliases Aptos to Carlito. (#4880, #4927)
  • Resize defaults to Fit inside, so an off-ratio width and height letterboxes instead of cutting edges off. Fit inside pads with transparency on formats that support it. Presets still crop. (#4866, #4868)
  • Auto image enhancement got better: it applies its exposure and contrast, lifts backlit subjects, corrects colour casts in both directions, and leaves neutral grey photos alone. (#4873, #4992, #5130, #5251)
  • Multi-page TIFFs keep every page through resize, split, rotate, OCR, smart crop and the other TIFF-out tools. (#4851, #4865, #4883, #4931, #5105, #5108)
  • Audio keeps its bit depth: WAV output and the audio filter tools keep 24-bit sources at 24 bits. (#5147, #5173)
  • SVG input renders at the size you ask for, including pt, percentage and viewBox-only SVGs, and SVG rendering runs in a separate process with a time limit. (#4949, #5086, #5212, #5286, #5349, #5350)
  • Remove a single file from a multi-file tool and reorder Image to PDF pages. Downloading several library files now gives you one ZIP; Safari used to save only the last file. (#4876, #4891)
  • Settings > Tools hides presets whose base tool is off, and disabled tools stay off for their presets. (#4630, #4638, #4465)
  • Admin health reports delayed jobs and uploads still arriving, and idle instances stop waking every second or two for jobs that do nothing. (#4797, #4803)
  • Errors say what happened for missing engines, crashed decoders, memory caps, unreadable PDF fonts, too many pixels and oversized renders. Tool input errors carry a code the interface translates. (#4725, #4697, #4735, #4728, #4893, #4898, #5152)
  • The login page tabs from username to password, and generated passwords are easier to use and keep. (#5389, #5088)

Bug Fixes

  • Stabilize Video crashed or wrote corrupted frames, most often on WebM input, because of a buffer bug in libvidstab. Frames are now copied before they reach it. (#4717, #4371)
  • Some audio files failed to transcribe with a decoder error. Uploads are now converted to 16 kHz WAV first. When there's no speech or no text to find, Transcribe Audio, Auto Subtitles and OCR say so instead of handing back an empty file. (#5106, #5132)
  • Auto Subtitles on a video with no audio track failed like a server error. It now answers 400 and says the video has no audio. (#5422)
  • Accurate PDF OCR timed out on long documents. Its deadline now scales with page count. (#4674, #4730)
  • Transparent SVGs turned into all-black JPEGs. (#4844)
  • TGA files decoded upside down, and EXIF-rotated previews showed sideways. (#4862, #5163)
  • Compress Video upscaled small sources to the target resolution. (#4520)
  • Trim Video's fast mode returned clips longer than the requested range, and windows under 0.1 s are now refused with a clear message. (#5032, #5229)
  • Watermarks taller than the base image failed. (#4858, #5021)
  • csv-excel could exhaust memory on a large CSV or XLSX. Both directions now stream. (#4848, #4860, #4897)
  • json-xml wrote invalid XML for top-level arrays and keys that aren't valid XML names, and malformed XML converted to partial output. (#4864, #4993, #4928)
  • Red-eye removal and noise removal ignored the output format. (#4933, #4881, #4845)
  • Collage silently dropped extra images. It now refuses too few and warns about extras. (#4918)
  • Bulk rename accepted non-image files. (#4925)
  • Scanned PDFs in pdf-to-word produced empty documents. They're now refused with an OCR offer, and unreadable-font PDFs are no longer mistaken for scans. (#4875, #5151, #5002)
  • Batches over 2 GiB failed to read their inputs. (#4682)
  • PDF tools didn't work on older browsers. (#4686)
  • Pipelines accepted steps that couldn't read the previous step's output, and progress jumped from 0 to 100. (#4958, #4944, #4544)
  • Editor shortcuts did nothing over remote desktop and other tools that send keys without a physical key code. (#4915)
  • The barcode generator failed with authentication on. (#5116)
  • UTF-16 subtitle files were rejected as invalid. (#5091)
  • A blank numeric variable such as PORT= meant 0, which bound a random port or lifted a limit. Blank now means unset. (#4588)
  • LOGIN_ATTEMPT_LIMIT=0 and API_KEYS_RATE_LIMIT_PER_MIN=0 blocked every request, and LIBREOFFICE_TIMEOUT_S=0 meant 120 seconds. All three now treat 0 as no limit. (#5226)
  • The image refused uploads once the workspace passed 10 GB. The published image now ships with no workspace cap, like its other limits. (#4867)
  • Timeout messages for non-AI tools talked about GPUs and model downloads. (#4538)
  • The Docker health check ignored PORT, so a container on another port reported unhealthy. (#4533)
  • Postgres over a unix socket never got past the startup wait. (#4973, #5198)
  • Face tools failed on a read-only root filesystem. (#4711)
  • Deleting a role moved its members to the user role without saying so. The response and the audit log now list who moved. (#5005)

Upgrade Notes

Migrations run on their own at startup. Two are new:

  • 0013 rehashes session tokens in place, so nobody is signed out. If you roll back to 2.3.0 afterwards, everyone has to sign in again.
  • 0014 keeps your password rules. New installs accept any non-empty password until an admin turns rules on under Settings > Security. An install that already has users keeps the old defaults (8 characters, uppercase, lowercase, digit), and rules an admin saved are left alone. (#5089)

Other changes:

  • Anonymous usage analytics stay on by default, with no first-run prompt. An admin can turn them off for the whole instance under Settings > System > Privacy, and that stops everything sent to PostHog and Sentry. While on, SnapOtter sends which tools and pipelines run, how long they take, whether they succeed, error codes and file counts, plus the instance's anonymous id, version, CPU architecture, OS, install type and whether it has a GPU. It never sends your files, their names or paths, their contents, OCR or extracted text, image metadata, or account identity. To start a new instance with analytics off, set SNAPOTTER_ANALYTICS_DEFAULT=off before its first boot. If the server can't read the setting at boot, it now treats analytics as off. Details are in the telemetry guide. (#5386, #4574)
  • HOST must be an IP address. tcsh sets HOST to the machine name, so a native install started from tcsh stops at boot with a message. Unset it, or set 0.0.0.0 or 127.0.0.1.
  • PUID and PGID stop the container if they can't be applied, for example on a read-only root, instead of quietly handing /data to uid 999. (#4894)
  • More tool routes run on the job queue. html-to-image, the passport photo generate step and vectorize still answer 200 when they finish inside the sync window, and 202 with a job id when they don't. Content-aware resize always answers 202 now. Its finished progress frame carries the same fields the old 200 body had, and an input it can't take (over 25 MP, or more than 2x enlargement) fails on the stream with a 400 instead of a 422. Scripts that only handle 200 should follow the job. The tool pages for content-aware resize, vectorize, passport photo and HTML to image show the responses. (#5035, #5118, #5019, #5060)
  • The compress-image-to-{20,50,100,200,500}kb API paths are deprecated. They still work. Use compress with {"mode":"targetSize","targetSizeKb":N}. (#4475)
  • New optional variables: HOST, SNAPOTTER_ANALYTICS_DEFAULT, AI_SIDECAR_IDLE_TIMEOUT (600, 0 keeps the sidecar running), EMBEDDED_PG_PORT, EMBEDDED_REDIS_PORT, EMBEDDED_DB_PASSWORDS, MAX_SETTINGS_PAYLOAD_KB (64), MAX_SUBTITLE_SIZE_MB (1) and MAX_METADATA_TAG_LENGTH (10000). SNAPOTTER_GPU and the SD15_INPAINT_* settings are now documented in the configuration guide.

Acknowledgements

Most of the new tools in this release started as a request from someone who uses SnapOtter.

Code and contributions:

  • @theeaashish ❤️: Made editor shortcuts work over remote desktop and other tools that send keys without a physical key code, and made Resize pad with transparency on formats that support it. (#4915, #4868, #5289)
  • @mayuriphad ❤️: Made the subtitle tools accept UTF-16 files, and gave json-xml a clear 400 for a non-scalar #text value. (#5091, #5090)
  • @SuranaSanyam ❤️: Rewrote the offline feedback message in all 21 locales so it no longer depends on the analytics setting, and tightened the no-auth test harness. (#4584, #4780, #4455, #4278)
  • @RClaudiuM ❤️: Made blank numeric variables like PORT= fall back to their defaults instead of becoming 0. (#4588, #4499)
  • @CloudCorpRecords ❤️: Stopped non-AI job timeouts telling people about GPUs and model downloads, and named the setting that applies. (#4538)
  • @dltsum ❤️: Made the SCIM and job-cancel routes check authentication before reading the request body. (#4635)
  • @hetbhalani ❤️: Fixed the barcode generator dropping its auth header. (#5116)
  • @OpenLucasKaka ❤️: Brought the 20 translated telemetry guides back in line with the English page. (#4636)
  • zgy ❤️: Made the Docker health check and the Compose examples follow PORT. (#4533)
  • @mvanhorn ❤️: Renamed the external-image e2e script so it can't be mistaken for the Docker test lane. (#4281)
  • @albanobattistella ❤️: Italian translation fixes. (#5250)

Bug reports:

Feature requests and feedback:

  • @gravelfreeman ❤️: Asked for the aspect-ratio calculator, Convert Case, the proportion calculator and Base64, so they could stop pasting text into third-party sites. All four shipped. (#762, #763, #764, #880)
  • @pxlnic ❤️: Asked for Text Overlay to wrap long text and let the box move freely, which became caption wrapping and the draggable text box. (#749, #5044, #5285)
  • @Morethanevil ❤️: Asked for unix-socket connections to Postgres, which now work through the startup wait. (#460, #4973)
  • @OpenLucasKaka ❤️: Spotted that the repository's secret guard flagged environment references ending in a comma or semicolon. The fix landed through a maintainer PR. (#4591, #4596)

Thank you as well to everyone who asked for things through in-app feedback, whose names we don't have: PDF to Markdown (#1096), the audio converters (#1099), Merge Text Files (#1101), timecodes in Trim Video (#728), the straighten grid (#732), Sony .hif support (#4825), images to GIF (#4826), animated AVIF (#4827), Convert Subtitles (#4828), Optimize SVG (#4829), Convert Font (#4830), 4x6 shipping labels (#4831) and stripping PDF metadata (#4837).

Upgrade

docker compose pull && docker compose up -d

Or pull the app image directly:

docker pull snapotter/snapotter:2.4.0

The Compose files for this release: docker-compose.yml and docker-compose-gpu.yml.

Full Changelog: v2.3.0...v2.4.0

Docs  ·  Live demo  ·  Website  ·  Discord

Don't miss a new SnapOtter release

NewReleases is sending notifications on new releases.