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 voidPermits untrusted operations, such as loading PDFsstatic voidDisables the libvips operations cachestatic voidinit()static voidinit(boolean allowUntrusted, boolean detectLeaks) static voidrun(VipsRunnable runnable) Provides a scoped arena to provide a memory boundary for running libvips operationsstatic voidshutdown()
-
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
-