Hi, I am using JMagick from Clojure to load several textures per second and the calls to ImageInfo and imageToBlob seem to be leaking memory.
(defn slurp-image
"Load an RGB image"
[^String file-name]
(let [info (ImageInfo. file-name)
image (MagickImage. info)
dimension (.getDimension image)]
(doto info
(.setDepth 8)
(.setColorspace ColorspaceType/RGBColorspace)
(.setMagick "RGBA"))
{:width (.width dimension) :height (.height dimension) :data (.imageToBlob image info)}))
Kind regards
Jan
Hi, I am using JMagick from Clojure to load several textures per second and the calls to ImageInfo and imageToBlob seem to be leaking memory.
Kind regards
Jan