Search code examples
javaimageopencvhipi

Create thumbnail using Java running on headless mode


How to create a thumbnail for an image using java application where X11 not available . I tried using javascalr,im4java but all working if X11 present.


Solution

  • Now I am able to run in headless mode using this below code

    static { System.setProperty("java.awt.headless", "true"); System.out.println(java.awt.GraphicsEnvironment.isHeadless()); }