@blazetrails/image-processing
Image processing pipelines for Trails, mirroring the image_processing gem
| Measure | Value |
|---|---|
| Rails counterpart | image_processing v1.14.0 |
| API methods matched | 100% (105 of 105) |
| Rails tests matched | 100% (177 of 177) (1 permanent) |
| Ruby files ported | 6 |
| Ruby files unported | 0 |
| Measured at | fe89b44726 |
Gaps by file
No gaps recorded for this package.
Missing methods
None recorded for this package.
Unported Ruby files
Every compared Ruby file has a TypeScript file.
Deviation receipts
JSDoc receipt tags in the package's source, by the receipt each carries.
| Tag | PERMANENT | CONVERGEABLE | none |
|---|---|---|---|
@noRailsEquivalent | 15 | 0 | 0 |
@missingRailsArgs | 1 | 0 | 0 |
@inventedArm | 8 | 0 | 0 |
@internal | 0 | 0 | 14 |
Permanently skipped tests
Method visibility is compile-time only (Module#private, basic_obj_respond_to's pub) (1)
Ratified deviations
Each rule below is ratified in the repository's CLAUDE.md files. The first paragraph is quoted; the link opens the full section at this build's commit.
Method visibility is compile-time only (Module#private, basic_obj_respond_to's pub)
Ruby's basic_obj_respond_to (vendor/ruby/v3.3.11/vm_method.c:2864-2879) takes a pub flag and hands it to method_boundp (:1788-1818), so respond_to?(:m) and respond_to?(:m, true) can answer differently for the same receiver, and Kernel#public_send (vm_eval.c:1350) raises NoMethodError "private method '…' called for …" where send dispatches. Visibility is a property of the method entry, readable at run time.
A wasm-vips Image is freed by delete() only
ruby-vips registers libvips' tracked memory with Ruby's GC, so an unreferenced Vips::Image is collected under memory pressure (vendor/image_processing/v1.14.0/lib/image_processing/processor.rb:11-35). wasm-vips 0.0.19 binds Image by raw pointer, and its embind glue registers a handle with its FinalizationRegistry only when the handle holds a smart pointer, so no Image is ever finalized; V8 cannot see the wasm heap either, so a decode would not prompt a collection. Measured on trails#9710: each 4032×2688 transform kept ~34 MB until "vips_tracked: out of memory". Processor.call and every ImageProcessing::Vips operation that supersedes an intermediate it created deletes that intermediate, carrying @inventedArm delete — PERMANENT (deleteAccumulator in processor.ts). A handle the caller passed in is never deleted. Ruled by the operator on 2026-11-04.
packages/image-processing/CLAUDE.md →
method_missing definers in this package
Class-specific rules under root § "Ruby protocol methods with a different JS mechanism"; its cross-table rules and docs/method-missing-definers.md apply too.