Class Vips

java.lang.Object
app.photofox.vipsffm.Vips

public class Vips extends Object

Helper class for running Vips commands with an appropriate arena

Blocks untrusted operations by default

  • Constructor Details

    • Vips

      public Vips()
  • Method Details

    • init

      public static void init()
    • init

      public static void init(boolean allowUntrusted, boolean detectLeaks)
    • run

      public static void run(VipsRunnable runnable)

      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