Class Vips
java.lang.Object
app.photofox.vipsffm.Vips
Helper class for running Vips commands with an appropriate arena
Blocks untrusted operations by default
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Permits untrusted operations, such as loading PDFsstatic void
Disables the libvips operations cachestatic void
init()
static void
init
(boolean allowUntrusted, boolean detectLeaks) static void
run
(VipsRunnable runnable) Provides a scoped arena to provide a memory boundary for running libvips operationsstatic void
shutdown()
-
Constructor Details
-
Vips
public Vips()
-
-
Method Details
-
init
public static void init() -
init
public static void init(boolean allowUntrusted, boolean detectLeaks) -
run
Provides a scoped arena to provide a memory boundary for running libvips operations
After the scope has ended, any memory allocated whilst using libvips within it will be freed
-
shutdown
public static void shutdown() -
allowUntrustedOperations
public static void allowUntrustedOperations()Permits untrusted operations, such as loading PDFs
vips-ffm blocks these by default - see the libvips docs for guidance
-
disableOperationCache
public static void disableOperationCache()Disables the libvips operations cache
At the time of writing libvips caches 100 operations by default, which might not be useful in long-running applications (like servers).
See also: libvips docs
-