I am writing an image-upload system using Clojure. I use a Java library javadoc to make a thumbnail image.
(defn upload-file [file]
  (let [file-name (file :filename)
        actual-file (file :tempfile)
        image (Thumbnails/fromFiles (java.util.ArrayList. [actual-file]))
        image-jpg (.outputFormat image "jpg")
        thumb (.forceSize image-jpg 250 150)]
        ...
My code changes both thumb var and image-jpg var, but I want to have two separate images (one with normal size and thumb). How do I make a copy of image-jpg to change its size?
 
     
     
    